Frame 1
function rightclick() {
getURL ("http://www.girlgames1.com");
}
var fmm01_menu = new ContextMenu();
fmm01_menu.hideBuiltInItems();
_root.menu = fmm01_menu;
var item = new ContextMenuItem("Created by www.girlgames1.com", rightclick);
fmm01_menu.customItems[0] = item;
var loadper = 0;
Frame 2
if (_framesloaded == _totalframes) {
gotoAndPlay (4);
} else {
setProperty(_root.bar, _xscale , (int(_root.getBytesLoaded() / 1000) / int(_root.getBytesTotal() / 1000)) * 100);
loadper = int(((_root.getBytesLoaded() / 1000) / (_root.getBytesTotal() / 1000)) * 100);
}
Frame 3
gotoAndPlay (2);
Frame 4
function rightclick() {
getURL ("http://www.girlgames1.com");
}
var fmm01_menu = new ContextMenu();
fmm01_menu.hideBuiltInItems();
_root.menu = fmm01_menu;
var item = new ContextMenuItem("Created by www.girlgames1.com", rightclick);
fmm01_menu.customItems[0] = item;
Frame 210
stop();
Frame 211
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("04f208e8", this, 10301, true);
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
pointer_mc1._x = _xmouse;
pointer_mc1._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
Frame 212
stop();
Frame 214
function leveltxt2() {
attract.level_txt2.text = "Level 1";
}
function tryagain2() {
attract.try_text2.text = "Try Again";
}
function cngtxt2() {
cng_txt2.text = "Congratulations";
}
function comtxt2() {
com_txt2.text = "you have completed Level 2";
}
function nxttxt2() {
nxt_txt2.text = "Next Level";
}
var lvlscore2 = "15000";
infoBar.secondtotalscore.text = "15000";
startGame();
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
pointer_mc1._x = _xmouse;
pointer_mc1._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
function playGreatSFX() {
var _local1 = int(Math.random() * 5);
if (_local1 <= 3) {
playSound("tt_giggle");
} else if (_local1 == 4) {
playSound("tt_content");
} else {
playSound("tt_gurgle2");
}
}
function playHappySFX() {
var _local1 = int(Math.random() * 6);
if (_local1 <= 1) {
playSound("tt_softPant");
} else if (_local1 == 2) {
playSound("tt_gurgle1");
} else if (_local1 == 3) {
playSound("tt_gurgle2");
} else if (_local1 == 4) {
playSound("tt_gurgle3");
} else if (_local1 == 5) {
playSound("tt_gurgle4");
} else {
playSound("tt_content");
}
}
function playGrumpySFX() {
var _local1 = int(Math.random() * 4);
if (_local1 <= 1) {
playSound("tt_wantingSomethingGrumpy");
} else if (_local1 == 2) {
playSound("tt_grumpy");
} else if (_local1 == 3) {
playSound("tt_cry1");
} else {
playSound("tt_cry2");
}
}
function playPissedSFX() {
var _local1 = int(Math.random() * 3);
if (_local1 <= 1) {
playSound("tt_scream");
} else if (_local1 == 2) {
playSound("tt_scream2");
} else {
playSound("tt_scream3");
}
}
function init() {
gameBroadcastObject.broadcastMessage("gameLoaded");
eventHandlerInit();
baby1 = new babyObject();
baby1.init(1);
baby2 = new babyObject();
baby2.init(2);
baby3 = new babyObject();
baby3.init(3);
var _local2 = {};
_local2.bestScore = 0;
ids = new com.preloaded.IDStore("levelup", "ttriplets", _local2);
bestScore = this.ids.props.bestScore;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
attractMode();
}
};
}
function attractMode() {
attract._visible = true;
coverAll._visible = false;
attract.gotoAndPlay(2);
}
function attractModeKill() {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
attract.gotoAndPlay(1);
attract._visible = false;
continueGame();
this._alpha = 100;
this.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
gameIntroStart();
}
};
}
};
}
function startGame() {
attractModeKill();
level = 1;
score = (infoBar.score.text = 0);
dummyScore.gotoAndStop(1);
dummys = 3;
lives = 3;
infoBar._y = -infoBar._height;
if (parent != mum) {
parent = mum;
dad._visible = false;
dad.gotoAndStop(1);
parentSFX = "tt_mumSnore";
parentSFX2 = "tt_mumTalking";
} else {
parent = dad;
mum._visible = false;
mum.gotoAndStop(1);
parentSFX = "tt_dadSnore";
parentSFX2 = "tt_dadTalking";
}
parent._visible = true;
}
function continueGame() {
infoBar.time.text = (tick = (seconds = (babiesVolume = 0)));
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
parent.gotoAndPlay("speaking");
}
function gameIntroStart() {
this.onEnterFrame = function () {
infoBar._y--;
if (infoBar._y <= (-infoBar._height)) {
delete this.onEnterFrame;
plotSpeech();
}
};
}
function plotSpeech() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 5;
speechBubble._visible = true;
var _local2 = int(Math.random() * speech.length);
var currentSpeech = speech[_local2];
var textOffset = 0;
var genCnt = 0;
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
}
};
}
};
}
};
}
function prepareToGo() {
parent.gotoAndPlay("sleeping");
playSound(parentSFX, 999999);
baby1.startBaby();
baby2.startBaby();
baby3.startBaby();
babiesVolume = 0;
monitor.gotoAndStop(1);
this.onEnterFrame = function () {
infoBar._y = infoBar._y + 40;
if (infoBar._y >= 502) {
infoBar._y = 502;
playerInit();
this.onEnterFrame = master;
}
};
}
function houseKeeping() {
var _local2 = null;
var _local4 = null;
var _local3 = 0;
while (_local3++ , _local3 != 4) {
_local2 = this["thought" + _local3];
_local2._visible = false;
_local2._alpha = 0;
_local2 = this["bubbles" + _local3];
_local2._visible = false;
_local4 = _local2["bubbles" + _local3];
_local2.bubble1._alpha = (_local2.bubble2._alpha = (_local2.bubble3._alpha = 0));
this["helpArrow" + _local3]._visible = false;
}
bin.gotoAndStop(1);
binArrow._visible = false;
playerKill();
stopAnims(babyMC1);
stopAnims(babyMC2);
stopAnims(babyMC3);
killSounds();
}
function stopAnims(mc) {
for (var _local3 in mc) {
if (typeof(mc[_local3]) == "movieclip") {
mc[_local3].gotoAndStop(mc[_local3]._currentframe);
for (var _local2 in mc[_local3]) {
if (typeof(mc[_local3][_local2]) == "movieclip") {
mc[_local3][_local2].gotoAndStop(mc[_local3][_local2]._currentframe);
}
}
}
}
}
function lifeLost() {
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
if (lives == 1) {
parent.gotoAndPlay("speaking");
} else {
parent.gotoAndPlay("wakingUp");
}
stopSound(parentSFX);
plotSpeechlifeLost();
}
function plotSpeechlifeLost() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 15;
speechBubble._visible = true;
lives--;
if (lives != 0) {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
}
var currentSpeech = speechLifeLost[lives];
var textOffset = 0;
var genCnt = 0;
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
if (lives == 0) {
gameOver();
} else {
prepareToGo();
}
}
};
}
};
}
};
}
};
}
function gameOver() {
attract.gotoAndPlay("gameOver");
}
function playerInit() {
bottleBaby = (bottleDroppedCnt = 0);
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
currentSelection = null;
Mouse.addListener(playerMouseListener);
}
function playerKill() {
playerMouseListener.onMouseDown = (playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null));
Mouse.removeListener(playerMouseListener);
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
rock._x = rock.orignalX;
rock._y = rock.orignalY;
burp._x = burp.orignalX;
burp._y = burp.orignalY;
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
wipeCursor._visible = (nappyCursor._visible = false);
stopDrag();
}
function playerDecCounters() {
bottleDroppedCnt--;
}
function waitingToPickUp() {
var _local3 = thisScope._xmouse;
var _local2 = thisScope._ymouse;
if (bottleBaby == 0) {
if (bottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
currentSelection = "bottle";
playSound("tt_buttonPressed");
if (bottleArrowCnt < 3) {
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else if (baby3.currentRequest == 1) {
var _local1 = 3;
}
if (_local1 != undefined) {
bottleArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(2);
thisScope["helpArrow" + _local1]._visible = true;
}
}
startDrag ("bottle");
}
} else if (bottleDroppedCnt <= 0) {
if (thisScope["babyMC" + bottleBaby].hitAreaBottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
bottle._visible = true;
bottle._x = _local3 - (bottle._width / 2);
bottle._y = _local2 - (bottle._height / 2);
thisScope["baby" + bottleBaby].removedBottle();
currentSelection = "bottle";
playSound("tt_pop");
startDrag ("bottle");
}
}
if (wipe.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingWipe;
playerMouseListener.onMouseMove = checkingForUsingWipe;
oldwipeCursorX = (wipeCursor._x = _local3 - (wipeCursor._width / 2));
oldwipeCursorY = (wipeCursor._y = _local2 - (wipeCursor._height / 2));
wipeCursor._visible = true;
currentSelection = "wipe";
if (wipeArrowCnt < 3) {
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else if (baby3.currentRequest == 6) {
var _local1 = 3;
}
if (_local1 != undefined) {
wipeArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(4);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
playSound("tt_pickingUpAWipe");
startDrag ("wipeCursor");
}
if (teddy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingTed;
playerMouseListener.onMouseMove = checkingForUsingTed;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
currentSelection = "teddy";
playSound("tt_teddy", 50);
playSound("tt_buttonPressed");
if (teddyArrowCnt < 3) {
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 2) {
var _local1 = 2;
} else if (baby3.currentRequest == 2) {
var _local1 = 3;
}
if (_local1 != undefined) {
teddyArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(7);
thisScope["helpArrow" + _local1]._visible = true;
}
}
teddy.gotoAndPlay("generalAnimation");
startDrag ("teddy");
}
if (dummys != 0) {
if (dummy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingDummy;
currentSelection = "dummy";
playSound("tt_buttonPressed");
startDrag ("dummy");
}
}
if (burp.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingBurp;
playerMouseListener.onMouseMove = checkingForUsingBurp;
oldBurpCursorX = burp._x;
oldBurpCursorY = burp._y;
currentSelection = "burp";
if (burpArrowCnt < 3) {
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else if (baby3.currentRequest == 3) {
var _local1 = 3;
}
if (_local1 != undefined) {
burpArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(6);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("burp");
}
if (rock.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingRock;
playerMouseListener.onMouseMove = checkingForUsingRock;
oldRockCursorX = rock._x;
currentSelection = "rock";
if (rockArrowCnt < 3) {
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else if (baby3.currentRequest == 4) {
var _local1 = 3;
}
if (_local1 != undefined) {
rockArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(5);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("rock");
}
if (baby1.pantsFull == true) {
if (babyMC1.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby1.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby1;
nappyCursor._visible = true;
baby1.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby2.pantsFull == true) {
if (babyMC2.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby2.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby2;
nappyCursor._visible = true;
baby2.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby3.pantsFull == true) {
if (babyMC3.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby3.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby3;
nappyCursor._visible = true;
baby3.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (nappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForNappyIcon;
nappy.flowers.gotoAndStop(1);
nappy.flowers._visible = false;
currentSelection = "nappy2";
playSound("tt_buttonPressed");
startDrag ("nappy");
}
}
function checkingForNappyIcon() {
if (currentSelection != "nappy2") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (baby1.needsANappy == true) {
if (baby1.needsAWipe == false) {
if (nappy.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.nappyPutOn;
}
}
}
if (baby2.needsANappy == true) {
if (baby2.needsAWipe == false) {
if (nappy.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.nappyPutOn;
}
}
}
if (baby3.needsANappy == true) {
if (baby3.needsAWipe == false) {
if (nappy.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.nappyPutOn;
}
}
}
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
}
function checkingForDroppingNappy() {
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
nappyCursor._visible = false;
if (nappyCursor.hitTest(bin.hitAreaMC)) {
nappyCursor._visible = false;
binArrow._visible = false;
playSound("tt_binClose");
nappyCursor.babyObj.needAWipe();
} else {
nappyCursor.babyObj.nappyNotInBin();
nappyCursor._visible = false;
}
bin.gotoAndStop(1);
}
function checkingForUsingRock() {
if (baby1.currentRequest == 4) {
if (baby1.bubbleDisplay == true) {
if (rock.hitTest(babyMC1.hitAreaRock)) {
baby1.currentMethod = baby1.checkRock;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 4) {
if (baby2.bubbleDisplay == true) {
if (rock.hitTest(babyMC2.hitAreaRock)) {
baby2.currentMethod = baby2.checkRock;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 4) {
if (baby3.bubbleDisplay == true) {
if (rock.hitTest(babyMC3.hitAreaRock)) {
baby3.currentMethod = baby3.checkRock;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingRock() {
if (currentSelection != "rock") {
return(undefined);
}
currentSelection = null;
stopDrag();
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
rock._x = rock.orignalX;
rock._y = rock.orignalY;
}
function checkingForUsingBurp() {
if (baby1.currentRequest == 3) {
if (baby1.bubbleDisplay == true) {
if (burp.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkBurp;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 3) {
if (baby2.bubbleDisplay == true) {
if (burp.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkBurp;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 3) {
if (baby3.bubbleDisplay == true) {
if (burp.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkBurp;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingBurp() {
if (currentSelection != "burp") {
return(undefined);
}
currentSelection = null;
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
burp._x = burp.orignalX;
burp._y = burp.orignalY;
}
function checkingForDroppingDummy() {
if (currentSelection != "dummy") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (dummy.hitTest(babyMC1.hitAreaHead)) {
baby1.givenDummy();
} else if (dummy.hitTest(babyMC2.hitAreaHead)) {
baby2.givenDummy();
} else if (dummy.hitTest(babyMC3.hitAreaHead)) {
baby3.givenDummy();
}
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
}
function checkingForUsingTed() {
if (baby1.currentRequest == 2) {
if (baby1.bubbleDisplay == true) {
if (teddy.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkTeddy;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 2) {
if (baby2.bubbleDisplay == true) {
if (teddy.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkTeddy;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 2) {
if (baby3.bubbleDisplay == true) {
if (teddy.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkTeddy;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingTed() {
if (currentSelection != "teddy") {
return(undefined);
}
currentSelection = null;
stopDrag();
stopSound("tt_teddy");
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
teddy.gotoAndStop(1);
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
}
function checkingForUsingWipe() {
if ((baby1.pukeFlag == true) || (baby1.needsANappy == true)) {
if (baby1.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.checkWipe;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if ((baby2.pukeFlag == true) || (baby2.needsANappy == true)) {
if (baby2.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.checkWipe;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if ((baby3.pukeFlag == true) || (baby3.needsANappy == true)) {
if (baby3.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.checkWipe;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingWipe() {
if (currentSelection != "wipe") {
return(undefined);
}
currentSelection = null;
wipeCursor._visible = false;
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
}
function checkingForDroppedBottle() {
if (currentSelection != "bottle") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (bottle.hitTest(babyMC1.hitAreaHead)) {
if (baby1.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC2.hitAreaHead)) {
if (baby2.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC3.hitAreaHead)) {
if (baby3.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
}
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
}
function master() {
baby1.currentMethod();
baby1.animationMethod();
baby2.currentMethod();
baby2.animationMethod();
baby3.currentMethod();
baby3.animationMethod();
playerDecCounters();
handleTimer();
if (Key.isDown(27)) {
killSounds();
coverAll._alpha = 0;
coverAll._visible = true;
this.onEnterFrame = function () {
coverAll._alpha = coverAll._alpha + 20;
if (coverAll._alpha >= 100) {
coverAll._alpha = 100;
delete this.onEnterFrame;
houseKeeping();
attractMode();
}
};
}
}
function handleTimer() {
if ((++tick) == frameRate) {
tick = 0;
seconds++;
infoBar.time.text = seconds;
if ((seconds % 5) == 0) {
score = score + 500;
infoBar.score.text = score;
}
if (score >= lvlscore2) {
gotoAndStop ("lvl1");
}
} else if ((tick % 5) == 0) {
handleMonitor();
}
}
function handleMonitor() {
var _local2 = (babiesVolume / 70) * 100;
_local2 = _local2 / 10;
_local2 = int(_local2);
monitor.gotoAndStop(_local2);
if (_local2 >= 8) {
delete this.onEnterFrame;
lifeLost();
}
}
var ver = "ver$0.1 - 2006_03_20";
if (frameRate == undefined) {
_global.frameRate = 31;
}
_global.thisScope = this;
var gameBroadcastObject = new Object();
if (thisScope == _root) {
var standalone = true;
var colorTest = 1;
var playerName = "Terrible Triplets";
} else {
var standalone = false;
var playerName = _root.profile.getPlayerName();
if (playerName == undefined) {
playerName = "Terrible Triplets";
}
var colorTest = _root.profile.getPlayerSkinOffset();
if (colorTest == undefined) {
colorTest = 1;
}
AsBroadcaster.initialize(gameBroadcastObject);
gameBroadcastObject.addListener(_parent._parent.listenerObject);
}
var score = 0;
var level = 1;
var babiesVolume = 0;
var lives = 3;
var bestScore = 0;
var binArrowCnt = 0;
var bottleArrowCnt = 0;
var soiledNappyCnt = 0;
var wipeArrowCnt = 0;
var rockArrowCnt = 0;
var burpArrowCnt = 0;
var teddyArrowCnt = 0;
var baby1 = null;
var baby2 = null;
var baby3 = null;
var bottleBaby = 0;
var bottleDroppedCnt = 0;
var oldwipeCursorX = 0;
var oldwipeCursorY = 0;
var oldTeddyCursorX = 0;
var oldTeddyCursorY = 0;
var dummys = 3;
var oldBurpCursorX = 0;
var oldBurpCursorY = 0;
var oldRockCursorX = 0;
var currentSelection = null;
var tick = 0;
var seconds = 0;
var listenerObject = new Object();
var playerMouseListener = new Object();
var masterVolume = 100;
var parent = null;
var parentSFX = null;
var parentSFX2 = null;
attract.newSound("tt_titleMod");
this.newSound("tt_points");
this.newSound("tt_buttonPressed");
this.newSound("tt_cradleRocked");
this.newSound("tt_binOpening");
this.newSound("tt_binClose");
this.newSound("tt_nappyOn");
this.newSound("tt_nappyOff");
this.newSound("tt_teddy");
this.newSound("tt_puke");
this.newSound("tt_burp");
this.newSound("tt_fart");
this.newSound("tt_mumSnore");
this.newSound("tt_mumTalking");
this.newSound("tt_dadSnore");
this.newSound("tt_dadTalking");
this.newSound("tt_pop");
this.newSound("tt_pickingUpAWipe");
this.newSound("tt_suckingDummy");
this.newSound("tt_drinkingBottle");
this.newSound("tt_lipSmacking");
this.newSound("tt_giggle");
this.newSound("tt_gurgle1");
this.newSound("tt_gurgle2");
this.newSound("tt_gurgle3");
this.newSound("tt_gurgle4");
this.newSound("tt_content");
this.newSound("tt_softPant");
this.newSound("tt_wantingSomethingGrumpy");
this.newSound("tt_grumpy");
this.newSound("tt_cry1");
this.newSound("tt_cry2");
this.newSound("tt_scream");
this.newSound("tt_scream2");
this.newSound("tt_scream3");
if (standalone == true) {
var path = "com.preloaded";
var a = path.split(".");
var o = _global;
var i = 0;
while (i < a.length) {
var name = a[i];
if (o[name] == undefined) {
o[name] = new Object();
}
o = o[name];
i++;
}
var ob = com.preloaded;
ob.IDStore = function (site, solname, props) {
this.site = site;
this.solname = solname;
this.props = props;
EventBroadcaster.initialize(this);
this.addListener(_root.dBugger);
this.addListener(_root.base);
this.cookie = SharedObject.getLocal((this.site + "/") + this.solname);
this.cookie.data.lastAccess = new Date();
this.cookie.flush();
if (this.cookie.data.lastModified) {
dBug("COOKIE: existed already");
this.loadLocal();
} else {
dBug("COOKIE: didn't exist already");
this.saveLocal();
dBug("this.saveLocal = " + this.saveLocal);
dBug("*******SAVED?");
}
};
ob.IDStore.prototype.loadLocal = function () {
for (var _local2 in this.props) {
this.props[_local2] = this.cookie.data[_local2];
}
};
ob.IDStore.prototype.saveLocal = function () {
dBug(("this.saveLocal(" + this.props) + ")");
for (var _local2 in this.props) {
this.cookie.data[_local2] = this.props[_local2];
dBug(((("saving props." + _local2) + " (") + this.props[_local2]) + ") to cookie");
}
this.cookie.data.lastModified = new Date();
this.cookie.flush();
};
}
var speech = new Array("Try to Care them");
var speechLifeLost = new Array("Try Next Time", "");
babyObject = function () {
this.num = 0;
this.currentMethod = null;
this.animationMethod = null;
this.thoughtBubble = null;
this.bubbles = null;
this.currentBubble = 1;
this.helpArrow = null;
this.bubbleDisplay = false;
this.sprite = null;
this.cot = null;
this.cotTop = null;
this.shadowMC = null;
this.pointsMC = null;
this.wipeCnt = 0;
this.lastRequest = null;
this.currentRequest = null;
this.actuallyHolding = false;
this.subdudeCnt = 0;
this.happySpeed = 30;
this.happyIncCnt = 0;
this.contentment = 0;
this.mood = "happy";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.bottlePoints = 1000;
this.teddyPoints = 2000;
this.rockPoints = 2000;
this.burpPoints = 2000;
this.wipePoints = 1000;
this.nappyPoints = 1000;
};
babyObject.prototype.init = function (num) {
this.num = num;
this.thoughtBubble = thisScope["thought" + num];
this.bubbles = thisScope["bubbles" + num];
this.sprite = thisScope["babyMC" + num];
this.helpArrow = thisScope["helpArrow" + num];
this.cot = thisScope["cot" + num];
this.cotTop = thisScope["cotTop" + num];
this.shadowMC = thisScope["shadowMC" + num];
this.pointsMC = thisScope["pointsMC" + num];
};
babyObject.prototype.reset = function () {
this.lastRequest = null;
this.currentRequest = null;
this.animationMethod = null;
this.actuallyHolding = false;
this.thoughtBubble.happyMeter._x = 44;
this.bubbleDisplay = false;
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.thoughtBubble.happyMeter.gotoAndStop(3);
this.mood = "great";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.firstRun = true;
this.wipeCnt = 0;
this.sprite.wipeCnt = this.wipeCnt;
var _local2 = int(Math.random() * 3) + 1;
var _local3 = babyMC1._currentframe;
var _local4 = babyMC2._currentframe;
var _local5 = babyMC3._currentframe;
if (this.num == 2) {
if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
}
}
} else if (this.num == 3) {
if (_local4 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local4 == _local2) {
_local2++;
}
} else if (_local4 == _local2) {
_local2++;
}
}
}
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
};
babyObject.prototype.startBaby = function () {
this.getWaitingFirstTime();
this.currentMethod = this.waitingToAnnoy;
};
babyObject.prototype.getWaitingFirstTime = function () {
this.subdudeCnt = int(Math.random() * 2) + (this.num * 2);
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.getWaitingTime = function () {
this.bubbles.bubble1._alpha = (this.bubbles.bubble2._alpha = (this.bubbles.bubble3._alpha = 0));
var _local2 = 10 - int(seconds / 60);
if (_local2 < 2) {
_local2 = 2;
}
this.subdudeCnt = int(Math.random() * _local2) + 2;
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.waitingToAnnoy = function () {
if ((--this.subdudeCnt) == 0) {
this.getNewRequest();
this.currentBubble = 1;
this.bubbles._visible = true;
this.currentMethod = this.displayThoughts;
} else if ((this.subdudeCnt % this.happySpeed) == 0) {
if (babiesVolume > 0) {
babiesVolume = babiesVolume - 0.5;
} else {
babiesVolume = 0;
}
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width == 1)) {
this.contentment = 0;
return(undefined);
}
if (seconds > 120) {
var _local2 = 2;
} else {
var _local2 = 1;
}
this.contentment = this.contentment - _local2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._width <= 1) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
}
}
var _local3 = this.mood;
this.setMood();
if (_local3 != this.mood) {
this.resetAnimation();
}
}
};
babyObject.prototype.getNewRequest = function () {
var _local2 = int(Math.random() * 4) + 1;
if (_local2 == this.lastRequest) {
_local2++;
if (_local2 >= 6) {
_local2 = 1;
}
}
this.lastRequest = (this.currentRequest = _local2);
if (_local2 == 5) {
this.pantsFull = true;
playSound("tt_fart");
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
}
};
babyObject.prototype.increaseHappiness = function (amount) {
if ((++this.happyIncCnt) >= (this.happySpeed / 4)) {
this.happyIncCnt = 0;
if (amount != undefined) {
var _local2 = amount;
} else {
var _local2 = 1;
}
this.contentment = this.contentment + _local2;
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x + _local2;
if (this.thoughtBubble.happyMeter._x > 34) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._x > 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
}
}
} else {
this.thoughtBubble.happyMeter._x = 44;
if (this.thoughtBubble.happyMeter._width >= 10) {
this.thoughtBubble.happyMeter.gotoAndStop(3);
}
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + _local2;
if ((--babiesVolume) < 0) {
babiesVolume = 0;
}
if (this.currentRequest == 3) {
if (this.sprite._currentframe != 80) {
this.sprite.gotoAndPlay(80);
} else if (this.sprite.anim.faceAnim.animRunning == false) {
if (this.contentment >= 30) {
this.sprite.anim.faceAnim.gotoAndPlay("fifthPress");
} else if (this.contentment >= 25) {
this.sprite.anim.faceAnim.gotoAndPlay("forthPress");
} else if (this.contentment >= 15) {
this.sprite.anim.faceAnim.gotoAndPlay("thirdPress");
} else if (this.contentment >= 10) {
this.sprite.anim.faceAnim.gotoAndPlay("secondPress");
} else {
this.sprite.anim.faceAnim.gotoAndPlay("firstPress");
}
}
}
}
if (this.thoughtBubble.happyMeter._width >= 32) {
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.mood = "great";
if (this.pukeFlag == true) {
this.sprite.puke._alpha = 0;
checkingForDroppingWipe();
} else if (this.laughingFlag == true) {
checkingForDroppingTed();
} else if (this.currentRequest == 3) {
this.sprite.anim.faceAnim.gotoAndPlay("burp");
playSound("tt_burp");
this.burpFlag = true;
checkingForDroppingBurp();
} else if (this.currentRequest == 4) {
checkingForDroppingRock();
} else if (this.needsANappy == true) {
this.sprite.wipeCnt = (this.wipeCnt = 32);
this.needsAWipe = false;
checkingForDroppingWipe();
this.currentRequest = 7;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.decreaseHappiness;
return(undefined);
}
this.currentRequest = 0;
this.currentMethod = this.hideThoughtBubble;
} else {
this.setMood();
}
}
};
babyObject.prototype.decreaseHappiness = function () {
if ((++this.happyIncCnt) >= this.happySpeed) {
this.happyIncCnt = 0;
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width > 1)) {
if (seconds > 60) {
if (this.thoughtBubble.happyMeter._width <= 4) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 4;
this.contentment = this.contentment - 4;
}
} else if (this.thoughtBubble.happyMeter._width <= 2) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.contentment = this.contentment - 2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 2;
}
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
}
} else {
if (this.thoughtBubble.happyMeter._x <= 14) {
this.thoughtBubble.happyMeter._x = 14;
this.thoughtBubble.happyMeter._width = 28;
this.contentment = -30;
return(undefined);
}
if (seconds > 120) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 4;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 4;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 4;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 2;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 2;
}
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.pukeFlag == true) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("sickGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("sickHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("sickPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("sickGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.cotAnimatingFlag == true) {
this.increaseBabiesVolume();
return(undefined);
}
if ((this.needsAWipe == true) || (this.currentRequest == 7)) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.currentRequest == 5) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("shitGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("shitHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("shitPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("shitGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.contentment >= -2) {
if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndPlay("needsSomething2");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndPlay("needsSomething4");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndPlay("needsSomething3");
}
} else {
this.increaseBabiesVolume();
}
};
babyObject.prototype.increaseBabiesVolume = function () {
if ((this.happyIncCnt % 8) == 0) {
this.setMood();
if (this.contentment < -2) {
if (babiesVolume < 60) {
if (this.mood == "grumpy") {
babiesVolume++;
} else if (this.mood == "pissed") {
babiesVolume = babiesVolume + 2;
}
} else {
babiesVolume = 60;
}
}
}
};
babyObject.prototype.setMood = function () {
if (this.contentment > 25) {
this.mood = "great";
} else if (this.contentment >= -2) {
this.mood = "happy";
} else if (this.contentment <= -20) {
this.mood = "pissed";
} else {
this.mood = "grumpy";
}
};
babyObject.prototype.resetAnimation = function () {
if (this.contentment == 0) {
var _local2 = int(Math.random() * 3) + 1;
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
return(undefined);
}
var _local2 = int(Math.random() * 3);
if (this.mood == "happy") {
this.sprite.gotoAndPlay(_local2 + 30);
} else if (this.mood == "grumpy") {
this.sprite.gotoAndPlay(_local2 + 46);
} else if (this.mood == "pissed") {
this.sprite.gotoAndPlay(_local2 + 62);
} else {
this.sprite.gotoAndPlay(_local2 + 12);
}
};
babyObject.prototype.waitingToPuke = function () {
if ((++this.pukeCnt) == (frameRate * 2)) {
stopSound("tt_drinkingBottle");
this.pukeCnt = 0;
this.pukeFlag = true;
if (bottleBaby != 0) {
bottleBaby = 0;
this.actuallyHolding = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
bottle._visible = true;
}
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.sprite.gotoAndPlay("babyBeingSick");
this.currentMethod = this.puking;
}
};
babyObject.prototype.puking = function () {
if (this.sprite.anim._currentframe == 90) {
this.lastRequest = (this.currentRequest = 6);
this.bubbles._visible = true;
if (this.mood == "great") {
this.sprite.gotoAndStop("sickGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("sickHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("sickGrumpy");
} else {
this.sprite.gotoAndStop("sickPissed");
}
this.currentMethod = this.displayThoughts;
} else if (this.sprite.anim._currentframe == 60) {
playSound("tt_puke");
}
};
babyObject.prototype.waitingForBurpToEnd = function () {
if ((++this.burpCnt) == (frameRate * 2)) {
this.burpCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.nappyWhippedOff = function () {
this.wipeCnt = (this.sprite.wipeCnt = 0);
this.nappyWhippedOff2();
};
babyObject.prototype.nappyWhippedOff2 = function () {
if (this.mood == "great") {
this.sprite.gotoAndStop("nakedGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("nakedHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("nakedGrumpy");
} else {
this.sprite.gotoAndStop("nakedPissed");
}
this.sprite.anim.cloud.gotoAndPlay(1);
};
babyObject.prototype.needAWipe = function () {
this.pantsFull = false;
this.needsAWipe = true;
this.needsANappy = true;
this.wipeCnt = 0;
this.lastRequest = (this.currentRequest = 6);
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
};
babyObject.prototype.nappyNotInBin = function () {
this.currentMethod = this.decreaseHappiness;
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
binArrow._visible = false;
};
babyObject.prototype.nappyPutOn = function () {
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
}
this.currentRequest = 0;
playSound("tt_nappyOn");
this.setMood();
this.resetAnimation();
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.checkWipe = function () {
var _local4 = Math.abs(oldwipeCursorX - wipeCursor._x);
var _local3 = Math.abs(oldwipeCursorY - wipeCursor._y);
var _local2 = _local4 + _local3;
oldwipeCursorX = wipeCursor._x;
oldwipeCursorY = wipeCursor._y;
if ((_local2 >= 10) && (_local2 <= 60)) {
this.helpArrow._visible = false;
if (this.pukeFlag == true) {
if (this.contentment > 0) {
this.sprite.puke._alpha = 100 - (this.contentment * 2);
} else {
this.sprite.puke._alpha = 100;
}
} else {
if (this.sprite.anim.cloud == undefined) {
this.nappyWhippedOff2();
}
if (this.contentment >= -2) {
this.wipeCnt = this.wipeCnt + 2;
if (this.wipeCnt > 32) {
this.wipeCnt = 32;
}
this.sprite.wipeCnt = this.wipeCnt;
if (this.contentment > 0) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else {
this.wipeCnt = 0;
if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
this.sprite.anim.cloud.gotoAndPlay(1);
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
this.sprite.anim.cloud.gotoAndPlay(1);
}
}
}
if (_local2 >= 25) {
this.increaseHappiness(4);
} else if (_local2 >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.givenDummy = function () {
if (this.bubbleDisplay == false) {
return(undefined);
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.rocking == true) {
this.cotAnimatingFlag = false;
this.animationMethod = null;
}
this.laughingFlag = (this.pukeFlag = (this.burpFlag = (this.pantsFull = (this.needsANappy = (this.needsAWipe = false)))));
this.currentRequest = (this.dummyCnt = 0);
dummyScore.nextFrame();
if ((--dummys) <= 0) {
dummys = 0;
dummy._visible = false;
}
this.dummyFlag = true;
this.helpArrow._visible = false;
playSound("tt_suckingDummy", 50);
this.sprite.gotoAndPlay("babyWithDummy");
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.suckingDummy = function () {
if (this.sprite.anim._currentframe == this.sprite.anim._totalframes) {
if ((++this.dummyCnt) == 1) {
stopSound("tt_suckingDummy");
this.dummyFlag = false;
this.thoughtBubble.happyMeter._x == 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.dummyCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
};
babyObject.prototype.givenBottle = function () {
if (this.bubbleDisplay == false) {
return(false);
}
if (this.currentRequest == 1) {
this.helpArrow._visible = false;
playSound("tt_drinkingBottle", 50);
this.sprite.gotoAndPlay("babyWithBottle");
this.actuallyHolding = true;
bottleBaby = this.num;
bottleDroppedCnt = 10;
this.currentMethod = this.increaseHappiness;
return(true);
}
return(false);
};
babyObject.prototype.removedBottle = function () {
stopSound("tt_drinkingBottle");
this.actuallyHolding = false;
this.setMood();
this.resetAnimation();
bottleBaby = 0;
bottleDroppedCnt = 10;
if (this.currentRequest == 1) {
this.currentMethod = this.decreaseHappiness;
} else {
playSound("tt_lipSmacking");
this.pukeCnt = 0;
this.pukeFlag = false;
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.checkRock = function () {
var _local2 = Math.abs(oldRockCursorX - rock._y);
var _local3 = oldRockCursorX;
oldRockCursorX = rock._y;
if ((_local2 >= 10) && (_local2 <= 30)) {
if (this.cotAnimatingFlag == false) {
this.cotAnimatingFlag = true;
if (this.sprite._currentframe != 200) {
this.sprite.gotoAndPlay(200);
this.animationMethod = this.handleCotAnimation;
this.helpArrow._visible = false;
this.rocking = true;
}
if (_local3 < rock._y) {
this.cotDirection = "Top";
this.cot.gotoAndPlay(31);
this.cotTop.gotoAndPlay(31);
this.shadowMC.gotoAndPlay(31);
this.sprite.anim.gotoAndPlay(31);
} else {
this.cotDirection = "Bottom";
this.cot.gotoAndPlay(2);
this.cotTop.gotoAndPlay(2);
this.shadowMC.gotoAndPlay(2);
this.sprite.anim.gotoAndPlay(2);
}
playSound("tt_cradleRocked");
}
this.increaseHappiness();
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.handleCotAnimation = function () {
if (this.cotDirection == "Bottom") {
if (this.cot._currentframe == 31) {
this.cotDirection = null;
this.cot.gotoAndStop(31);
this.cotTop.gotoAndStop(31);
this.shadowMC.gotoAndStop(31);
this.sprite.anim.gotoAndStop(31);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
} else if (this.cotDirection == "Top") {
if (this.cot._currentframe == 1) {
this.cotDirection = null;
this.cot.gotoAndStop(1);
this.cotTop.gotoAndStop(1);
this.shadowMC.gotoAndStop(1);
this.sprite.anim.gotoAndStop(1);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
}
};
babyObject.prototype.checkBurp = function () {
var _local2 = Math.abs(oldBurpCursorX - burp._x);
oldBurpCursorX = burp._x;
if ((_local2 >= 10) && (_local2 <= 30)) {
this.helpArrow._visible = false;
if (total >= 25) {
this.increaseHappiness(4);
} else if (total >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.checkTeddy = function () {
var _local4 = Math.abs(oldTeddyCursorX - teddy._x);
var _local3 = Math.abs(oldTeddyCursorY - teddy._y);
var _local2 = _local4 + _local3;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
if ((_local2 >= 10) && (_local2 <= 50)) {
this.helpArrow._visible = false;
if (this.contentment >= 10) {
if (this.laughingFlag == false) {
this.laughingFlag = true;
this.sprite.gotoAndPlay("babyLaughing");
}
}
if (_local2 >= 40) {
this.increaseHappiness(4);
} else if (_local2 >= 30) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.displayThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha + 50;
if (_local2._alpha >= 100) {
_local2._alpha = 100;
if ((++this.currentBubble) == 4) {
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = true;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.displayThoughtBubble;
}
}
};
babyObject.prototype.displayThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha + 25;
if (this.thoughtBubble._alpha >= 100) {
this.thoughtBubble._alpha = 100;
this.bubbleDisplay = true;
this.currentMethod = this.decreaseHappiness;
}
};
babyObject.prototype.hideThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha - 25;
if (this.thoughtBubble._alpha <= 0) {
this.bubbleDisplay = false;
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = false;
this.currentBubble = 3;
this.currentMethod = this.hideThoughts;
}
};
babyObject.prototype.hideThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha - 50;
if (_local2._alpha <= 0) {
_local2._alpha = 0;
if ((--this.currentBubble) < 0) {
this.bubbles._visible = true;
this.bubbleDisplay = false;
if ((this.lastRequest == 1) && (this.dummyFlag != true)) {
this.pukeCnt = 0;
this.pukeFlag = false;
this.plotPoints(this.bottlePoints);
this.currentMethod = this.waitingToPuke;
} else {
if (this.pukeFlag == true) {
this.plotPoints(this.wipePoints);
this.pukeFlag = false;
this.setMood();
this.resetAnimation();
} else if (this.laughingFlag == true) {
this.plotPoints(this.teddyPoints);
this.laughingFlag = false;
} else {
if (this.dummyFlag == true) {
this.dummyCnt = 0;
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
this.currentMethod = this.suckingDummy;
return(undefined);
}
if (this.burpFlag == true) {
this.plotPoints(this.burpPoints);
this.burpFlag = false;
this.burpCnt = 0;
this.currentMethod = this.waitingForBurpToEnd;
return(undefined);
}
if (this.rocking == true) {
this.rocking = false;
this.plotPoints(this.rockPoints);
return(undefined);
}
if (this.needsANappy == true) {
this.needsANappy = false;
this.plotPoints(2000);
}
}
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
}
};
babyObject.prototype.plotPoints = function (pointsToAdd) {
score = score + pointsToAdd;
infoBar.score.text = score;
if (pointsToAdd == 500) {
this.pointsMC.gotoAndStop(1);
} else if (pointsToAdd == 1000) {
this.pointsMC.gotoAndStop(2);
} else {
this.pointsMC.gotoAndStop(3);
}
this.pointsMC._visible = true;
this.pointsMC.anim.gotoAndPlay(1);
playSound("tt_points");
this.particlesInit(4);
};
babyObject.prototype.particlesInit = function (numberOfParticles) {
var _local2 = null;
var _local4 = 0;
var _local3 = fxPlayField.getNextHighestDepth();
while (_local4++ , _local4 != (numberOfParticles + 1)) {
_local2 = fxPlayField.attachMovie("flowerMC", "p" + _local3, _local3++);
_local2.xposition = (_local2._x = this.pointsMC._x);
_local2.yposition = (_local2._y = this.pointsMC._y);
_local2.xvel = (Math.random() * 10) - 5;
_local2.yvel = (Math.random() * 10) - 5;
_local2.gravity = 0.5;
_local2._xscale = (_local2._yscale = int(Math.random() * 100) + 50);
_local2.onEnterFrame = function () {
this.yposition = this.yposition + this.yvel;
this.yvel = this.yvel + this.gravity;
this.xposition = this.xposition + this.xvel;
this._y = this.yposition;
this._x = this.xposition;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Instance of Symbol 458 MovieClip "binArrow" in Frame 214
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC1" in Frame 214
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC3" in Frame 214
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 481 MovieClip in Frame 214
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Frame 214
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 341 MovieClip "bottle" in Frame 214
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 443 MovieClip "rock" in Frame 214
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Frame 214
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Frame 214
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Frame 214
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 489 MovieClip "dad" in Frame 214
onClipEvent (load) {
this.gotoAndStop(1);
_visible = false;
}
Instance of Symbol 491 MovieClip "mum" in Frame 214
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow1" in Frame 214
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow2" in Frame 214
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow3" in Frame 214
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 493 MovieClip "dummy" in Frame 214
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
Instance of Symbol 494 MovieClip "dummyScore" in Frame 214
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 496 MovieClip "speechBubble" in Frame 214
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 498 MovieClip "wipeCursor" in Frame 214
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.babyMC1.hitAreaPuke)) {
this.babyMC1.anim.nextFrame();
}
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 444 MovieClip "nappyCursor" in Frame 214
onClipEvent (load) {
_visible = false;
}
on (release) {
_visible = false;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 597 MovieClip "coverAll" in Frame 214
onClipEvent (load) {
this.useHandCursor = false;
}
Frame 215
var mc = null;
var mcd = 0;
for (mcd in thisScope) {
if (typeof(thisScope[mcd]) == "") {
thisScope[mcd].gotoAndStop(4);
}
}
init();
stop();
Frame 233
this.cngtxt2();
this.comtxt2();
this.nxttxt2();
lives == 0;
gameOver();
totalTime.text = seconds;
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clapins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clapins = new Sound(this._parent.BS_clapins);
} else {
this.createEmptyMovieClip("_clapins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clapins = new Sound(this.BS_clapins);
}
_global.Behaviors.Sound.clapins.attachSound("clapsnd");
_global.Behaviors.Sound.clapins.start(0, 1);
} else {
_global.Behaviors.Sound.clapins.stop("clapsnd");
}
Frame 235
function leveltxt2() {
attract.level_txt2.text = "Level 2";
}
function tryagain2() {
attract.try_text2.text = "Try Again";
}
function cngtxt2() {
cng_txt2.text = "Congratulations";
}
function comtxt2() {
com_txt2.text = "you have completed Level 2";
}
function nxttxt2() {
nxt_txt2.text = "Next Level";
}
var lvlscore2 = "50000";
infoBar.secondtotalscore.text = "50000";
startGame();
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
pointer_mc1._x = _xmouse;
pointer_mc1._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
function playGreatSFX() {
var _local1 = int(Math.random() * 5);
if (_local1 <= 3) {
playSound("tt_giggle");
} else if (_local1 == 4) {
playSound("tt_content");
} else {
playSound("tt_gurgle2");
}
}
function playHappySFX() {
var _local1 = int(Math.random() * 6);
if (_local1 <= 1) {
playSound("tt_softPant");
} else if (_local1 == 2) {
playSound("tt_gurgle1");
} else if (_local1 == 3) {
playSound("tt_gurgle2");
} else if (_local1 == 4) {
playSound("tt_gurgle3");
} else if (_local1 == 5) {
playSound("tt_gurgle4");
} else {
playSound("tt_content");
}
}
function playGrumpySFX() {
var _local1 = int(Math.random() * 4);
if (_local1 <= 1) {
playSound("tt_wantingSomethingGrumpy");
} else if (_local1 == 2) {
playSound("tt_grumpy");
} else if (_local1 == 3) {
playSound("tt_cry1");
} else {
playSound("tt_cry2");
}
}
function playPissedSFX() {
var _local1 = int(Math.random() * 3);
if (_local1 <= 1) {
playSound("tt_scream");
} else if (_local1 == 2) {
playSound("tt_scream2");
} else {
playSound("tt_scream3");
}
}
function init() {
gameBroadcastObject.broadcastMessage("gameLoaded");
eventHandlerInit();
baby1 = new babyObject();
baby1.init(1);
baby2 = new babyObject();
baby2.init(2);
baby3 = new babyObject();
baby3.init(3);
var _local2 = {};
_local2.bestScore = 0;
ids = new com.preloaded.IDStore("levelup", "ttriplets", _local2);
bestScore = this.ids.props.bestScore;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
attractMode();
}
};
}
function attractMode() {
attract._visible = true;
coverAll._visible = false;
attract.gotoAndPlay(2);
}
function attractModeKill() {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
attract.gotoAndPlay(1);
attract._visible = false;
continueGame();
this._alpha = 100;
this.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
gameIntroStart();
}
};
}
};
}
function startGame() {
attractModeKill();
level = 1;
score = (infoBar.score.text = 0);
dummyScore.gotoAndStop(1);
dummys = 3;
lives = 3;
infoBar._y = -infoBar._height;
if (parent != mum) {
parent = mum;
dad._visible = false;
dad.gotoAndStop(1);
parentSFX = "tt_mumSnore";
parentSFX2 = "tt_mumTalking";
} else {
parent = dad;
mum._visible = false;
mum.gotoAndStop(1);
parentSFX = "tt_dadSnore";
parentSFX2 = "tt_dadTalking";
}
parent._visible = true;
}
function continueGame() {
infoBar.time.text = (tick = (seconds = (babiesVolume = 0)));
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
parent.gotoAndPlay("speaking");
}
function gameIntroStart() {
this.onEnterFrame = function () {
infoBar._y--;
if (infoBar._y <= (-infoBar._height)) {
delete this.onEnterFrame;
plotSpeech();
}
};
}
function plotSpeech() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 5;
speechBubble._visible = true;
var _local2 = int(Math.random() * speech.length);
var currentSpeech = speech[_local2];
var textOffset = 0;
var genCnt = 0;
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
}
};
}
};
}
};
}
function prepareToGo() {
parent.gotoAndPlay("sleeping");
playSound(parentSFX, 999999);
baby1.startBaby();
baby2.startBaby();
baby3.startBaby();
babiesVolume = 0;
monitor.gotoAndStop(1);
this.onEnterFrame = function () {
infoBar._y = infoBar._y + 40;
if (infoBar._y >= 502) {
infoBar._y = 502;
playerInit();
this.onEnterFrame = master;
}
};
}
function houseKeeping() {
var _local2 = null;
var _local4 = null;
var _local3 = 0;
while (_local3++ , _local3 != 4) {
_local2 = this["thought" + _local3];
_local2._visible = false;
_local2._alpha = 0;
_local2 = this["bubbles" + _local3];
_local2._visible = false;
_local4 = _local2["bubbles" + _local3];
_local2.bubble1._alpha = (_local2.bubble2._alpha = (_local2.bubble3._alpha = 0));
this["helpArrow" + _local3]._visible = false;
}
bin.gotoAndStop(1);
binArrow._visible = false;
playerKill();
stopAnims(babyMC1);
stopAnims(babyMC2);
stopAnims(babyMC3);
killSounds();
}
function stopAnims(mc) {
for (var _local3 in mc) {
if (typeof(mc[_local3]) == "movieclip") {
mc[_local3].gotoAndStop(mc[_local3]._currentframe);
for (var _local2 in mc[_local3]) {
if (typeof(mc[_local3][_local2]) == "movieclip") {
mc[_local3][_local2].gotoAndStop(mc[_local3][_local2]._currentframe);
}
}
}
}
}
function lifeLost() {
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
if (lives == 1) {
parent.gotoAndPlay("speaking");
} else {
parent.gotoAndPlay("wakingUp");
}
stopSound(parentSFX);
plotSpeechlifeLost();
}
function plotSpeechlifeLost() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 15;
speechBubble._visible = true;
lives--;
if (lives != 0) {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
}
var currentSpeech = speechLifeLost[lives];
var textOffset = 0;
var genCnt = 0;
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
if (lives == 0) {
gameOver();
} else {
prepareToGo();
}
}
};
}
};
}
};
}
};
}
function gameOver() {
attract.gotoAndPlay("gameOver");
}
function playerInit() {
bottleBaby = (bottleDroppedCnt = 0);
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
currentSelection = null;
Mouse.addListener(playerMouseListener);
}
function playerKill() {
playerMouseListener.onMouseDown = (playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null));
Mouse.removeListener(playerMouseListener);
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
rock._x = rock.orignalX;
rock._y = rock.orignalY;
burp._x = burp.orignalX;
burp._y = burp.orignalY;
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
wipeCursor._visible = (nappyCursor._visible = false);
stopDrag();
}
function playerDecCounters() {
bottleDroppedCnt--;
}
function waitingToPickUp() {
var _local3 = thisScope._xmouse;
var _local2 = thisScope._ymouse;
if (bottleBaby == 0) {
if (bottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
currentSelection = "bottle";
playSound("tt_buttonPressed");
if (bottleArrowCnt < 3) {
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else if (baby3.currentRequest == 1) {
var _local1 = 3;
}
if (_local1 != undefined) {
bottleArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(2);
thisScope["helpArrow" + _local1]._visible = true;
}
}
startDrag ("bottle");
}
} else if (bottleDroppedCnt <= 0) {
if (thisScope["babyMC" + bottleBaby].hitAreaBottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
bottle._visible = true;
bottle._x = _local3 - (bottle._width / 2);
bottle._y = _local2 - (bottle._height / 2);
thisScope["baby" + bottleBaby].removedBottle();
currentSelection = "bottle";
playSound("tt_pop");
startDrag ("bottle");
}
}
if (wipe.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingWipe;
playerMouseListener.onMouseMove = checkingForUsingWipe;
oldwipeCursorX = (wipeCursor._x = _local3 - (wipeCursor._width / 2));
oldwipeCursorY = (wipeCursor._y = _local2 - (wipeCursor._height / 2));
wipeCursor._visible = true;
currentSelection = "wipe";
if (wipeArrowCnt < 3) {
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else if (baby3.currentRequest == 6) {
var _local1 = 3;
}
if (_local1 != undefined) {
wipeArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(4);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
playSound("tt_pickingUpAWipe");
startDrag ("wipeCursor");
}
if (teddy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingTed;
playerMouseListener.onMouseMove = checkingForUsingTed;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
currentSelection = "teddy";
playSound("tt_teddy", 50);
playSound("tt_buttonPressed");
if (teddyArrowCnt < 3) {
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 2) {
var _local1 = 2;
} else if (baby3.currentRequest == 2) {
var _local1 = 3;
}
if (_local1 != undefined) {
teddyArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(7);
thisScope["helpArrow" + _local1]._visible = true;
}
}
teddy.gotoAndPlay("generalAnimation");
startDrag ("teddy");
}
if (dummys != 0) {
if (dummy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingDummy;
currentSelection = "dummy";
playSound("tt_buttonPressed");
startDrag ("dummy");
}
}
if (burp.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingBurp;
playerMouseListener.onMouseMove = checkingForUsingBurp;
oldBurpCursorX = burp._x;
oldBurpCursorY = burp._y;
currentSelection = "burp";
if (burpArrowCnt < 3) {
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else if (baby3.currentRequest == 3) {
var _local1 = 3;
}
if (_local1 != undefined) {
burpArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(6);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("burp");
}
if (rock.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingRock;
playerMouseListener.onMouseMove = checkingForUsingRock;
oldRockCursorX = rock._x;
currentSelection = "rock";
if (rockArrowCnt < 3) {
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else if (baby3.currentRequest == 4) {
var _local1 = 3;
}
if (_local1 != undefined) {
rockArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(5);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("rock");
}
if (baby1.pantsFull == true) {
if (babyMC1.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby1.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby1;
nappyCursor._visible = true;
baby1.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby2.pantsFull == true) {
if (babyMC2.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby2.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby2;
nappyCursor._visible = true;
baby2.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby3.pantsFull == true) {
if (babyMC3.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby3.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby3;
nappyCursor._visible = true;
baby3.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (nappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForNappyIcon;
nappy.flowers.gotoAndStop(1);
nappy.flowers._visible = false;
currentSelection = "nappy2";
playSound("tt_buttonPressed");
startDrag ("nappy");
}
}
function checkingForNappyIcon() {
if (currentSelection != "nappy2") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (baby1.needsANappy == true) {
if (baby1.needsAWipe == false) {
if (nappy.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.nappyPutOn;
}
}
}
if (baby2.needsANappy == true) {
if (baby2.needsAWipe == false) {
if (nappy.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.nappyPutOn;
}
}
}
if (baby3.needsANappy == true) {
if (baby3.needsAWipe == false) {
if (nappy.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.nappyPutOn;
}
}
}
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
}
function checkingForDroppingNappy() {
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
nappyCursor._visible = false;
if (nappyCursor.hitTest(bin.hitAreaMC)) {
nappyCursor._visible = false;
binArrow._visible = false;
playSound("tt_binClose");
nappyCursor.babyObj.needAWipe();
} else {
nappyCursor.babyObj.nappyNotInBin();
nappyCursor._visible = false;
}
bin.gotoAndStop(1);
}
function checkingForUsingRock() {
if (baby1.currentRequest == 4) {
if (baby1.bubbleDisplay == true) {
if (rock.hitTest(babyMC1.hitAreaRock)) {
baby1.currentMethod = baby1.checkRock;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 4) {
if (baby2.bubbleDisplay == true) {
if (rock.hitTest(babyMC2.hitAreaRock)) {
baby2.currentMethod = baby2.checkRock;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 4) {
if (baby3.bubbleDisplay == true) {
if (rock.hitTest(babyMC3.hitAreaRock)) {
baby3.currentMethod = baby3.checkRock;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingRock() {
if (currentSelection != "rock") {
return(undefined);
}
currentSelection = null;
stopDrag();
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
rock._x = rock.orignalX;
rock._y = rock.orignalY;
}
function checkingForUsingBurp() {
if (baby1.currentRequest == 3) {
if (baby1.bubbleDisplay == true) {
if (burp.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkBurp;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 3) {
if (baby2.bubbleDisplay == true) {
if (burp.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkBurp;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 3) {
if (baby3.bubbleDisplay == true) {
if (burp.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkBurp;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingBurp() {
if (currentSelection != "burp") {
return(undefined);
}
currentSelection = null;
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
burp._x = burp.orignalX;
burp._y = burp.orignalY;
}
function checkingForDroppingDummy() {
if (currentSelection != "dummy") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (dummy.hitTest(babyMC1.hitAreaHead)) {
baby1.givenDummy();
} else if (dummy.hitTest(babyMC2.hitAreaHead)) {
baby2.givenDummy();
} else if (dummy.hitTest(babyMC3.hitAreaHead)) {
baby3.givenDummy();
}
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
}
function checkingForUsingTed() {
if (baby1.currentRequest == 2) {
if (baby1.bubbleDisplay == true) {
if (teddy.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkTeddy;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 2) {
if (baby2.bubbleDisplay == true) {
if (teddy.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkTeddy;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 2) {
if (baby3.bubbleDisplay == true) {
if (teddy.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkTeddy;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingTed() {
if (currentSelection != "teddy") {
return(undefined);
}
currentSelection = null;
stopDrag();
stopSound("tt_teddy");
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
teddy.gotoAndStop(1);
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
}
function checkingForUsingWipe() {
if ((baby1.pukeFlag == true) || (baby1.needsANappy == true)) {
if (baby1.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.checkWipe;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if ((baby2.pukeFlag == true) || (baby2.needsANappy == true)) {
if (baby2.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.checkWipe;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if ((baby3.pukeFlag == true) || (baby3.needsANappy == true)) {
if (baby3.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.checkWipe;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingWipe() {
if (currentSelection != "wipe") {
return(undefined);
}
currentSelection = null;
wipeCursor._visible = false;
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
}
function checkingForDroppedBottle() {
if (currentSelection != "bottle") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (bottle.hitTest(babyMC1.hitAreaHead)) {
if (baby1.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC2.hitAreaHead)) {
if (baby2.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC3.hitAreaHead)) {
if (baby3.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
}
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
}
function master() {
baby1.currentMethod();
baby1.animationMethod();
baby2.currentMethod();
baby2.animationMethod();
baby3.currentMethod();
baby3.animationMethod();
playerDecCounters();
handleTimer();
if (Key.isDown(27)) {
killSounds();
coverAll._alpha = 0;
coverAll._visible = true;
this.onEnterFrame = function () {
coverAll._alpha = coverAll._alpha + 20;
if (coverAll._alpha >= 100) {
coverAll._alpha = 100;
delete this.onEnterFrame;
houseKeeping();
attractMode();
}
};
}
}
function handleTimer() {
if ((++tick) == frameRate) {
tick = 0;
seconds++;
infoBar.time.text = seconds;
if ((seconds % 5) == 0) {
score = score + 500;
infoBar.score.text = score;
}
if (score >= lvlscore2) {
gotoAndStop ("lvl2");
}
} else if ((tick % 5) == 0) {
handleMonitor();
}
}
function handleMonitor() {
var _local2 = (babiesVolume / 70) * 100;
_local2 = _local2 / 10;
_local2 = int(_local2);
monitor.gotoAndStop(_local2);
if (_local2 >= 8) {
delete this.onEnterFrame;
lifeLost();
}
}
var ver = "ver$0.1 - 2006_03_20";
if (frameRate == undefined) {
_global.frameRate = 31;
}
_global.thisScope = this;
var gameBroadcastObject = new Object();
if (thisScope == _root) {
var standalone = true;
var colorTest = 1;
var playerName = "Terrible Triplets";
} else {
var standalone = false;
var playerName = _root.profile.getPlayerName();
if (playerName == undefined) {
playerName = "Terrible Triplets";
}
var colorTest = _root.profile.getPlayerSkinOffset();
if (colorTest == undefined) {
colorTest = 1;
}
AsBroadcaster.initialize(gameBroadcastObject);
gameBroadcastObject.addListener(_parent._parent.listenerObject);
}
var score = 0;
var level = 1;
var babiesVolume = 0;
var lives = 3;
var bestScore = 0;
var binArrowCnt = 0;
var bottleArrowCnt = 0;
var soiledNappyCnt = 0;
var wipeArrowCnt = 0;
var rockArrowCnt = 0;
var burpArrowCnt = 0;
var teddyArrowCnt = 0;
var baby1 = null;
var baby2 = null;
var baby3 = null;
var bottleBaby = 0;
var bottleDroppedCnt = 0;
var oldwipeCursorX = 0;
var oldwipeCursorY = 0;
var oldTeddyCursorX = 0;
var oldTeddyCursorY = 0;
var dummys = 3;
var oldBurpCursorX = 0;
var oldBurpCursorY = 0;
var oldRockCursorX = 0;
var currentSelection = null;
var tick = 0;
var seconds = 0;
var listenerObject = new Object();
var playerMouseListener = new Object();
var masterVolume = 100;
var parent = null;
var parentSFX = null;
var parentSFX2 = null;
attract.newSound("tt_titleMod");
this.newSound("tt_points");
this.newSound("tt_buttonPressed");
this.newSound("tt_cradleRocked");
this.newSound("tt_binOpening");
this.newSound("tt_binClose");
this.newSound("tt_nappyOn");
this.newSound("tt_nappyOff");
this.newSound("tt_teddy");
this.newSound("tt_puke");
this.newSound("tt_burp");
this.newSound("tt_fart");
this.newSound("tt_mumSnore");
this.newSound("tt_mumTalking");
this.newSound("tt_dadSnore");
this.newSound("tt_dadTalking");
this.newSound("tt_pop");
this.newSound("tt_pickingUpAWipe");
this.newSound("tt_suckingDummy");
this.newSound("tt_drinkingBottle");
this.newSound("tt_lipSmacking");
this.newSound("tt_giggle");
this.newSound("tt_gurgle1");
this.newSound("tt_gurgle2");
this.newSound("tt_gurgle3");
this.newSound("tt_gurgle4");
this.newSound("tt_content");
this.newSound("tt_softPant");
this.newSound("tt_wantingSomethingGrumpy");
this.newSound("tt_grumpy");
this.newSound("tt_cry1");
this.newSound("tt_cry2");
this.newSound("tt_scream");
this.newSound("tt_scream2");
this.newSound("tt_scream3");
if (standalone == true) {
var path = "com.preloaded";
var a = path.split(".");
var o = _global;
var i = 0;
while (i < a.length) {
var name = a[i];
if (o[name] == undefined) {
o[name] = new Object();
}
o = o[name];
i++;
}
var ob = com.preloaded;
ob.IDStore = function (site, solname, props) {
this.site = site;
this.solname = solname;
this.props = props;
EventBroadcaster.initialize(this);
this.addListener(_root.dBugger);
this.addListener(_root.base);
this.cookie = SharedObject.getLocal((this.site + "/") + this.solname);
this.cookie.data.lastAccess = new Date();
this.cookie.flush();
if (this.cookie.data.lastModified) {
dBug("COOKIE: existed already");
this.loadLocal();
} else {
dBug("COOKIE: didn't exist already");
this.saveLocal();
dBug("this.saveLocal = " + this.saveLocal);
dBug("*******SAVED?");
}
};
ob.IDStore.prototype.loadLocal = function () {
for (var _local2 in this.props) {
this.props[_local2] = this.cookie.data[_local2];
}
};
ob.IDStore.prototype.saveLocal = function () {
dBug(("this.saveLocal(" + this.props) + ")");
for (var _local2 in this.props) {
this.cookie.data[_local2] = this.props[_local2];
dBug(((("saving props." + _local2) + " (") + this.props[_local2]) + ") to cookie");
}
this.cookie.data.lastModified = new Date();
this.cookie.flush();
};
}
var speech = new Array("Try to Care them");
var speechLifeLost = new Array("Try Next Time", "");
babyObject = function () {
this.num = 0;
this.currentMethod = null;
this.animationMethod = null;
this.thoughtBubble = null;
this.bubbles = null;
this.currentBubble = 1;
this.helpArrow = null;
this.bubbleDisplay = false;
this.sprite = null;
this.cot = null;
this.cotTop = null;
this.shadowMC = null;
this.pointsMC = null;
this.wipeCnt = 0;
this.lastRequest = null;
this.currentRequest = null;
this.actuallyHolding = false;
this.subdudeCnt = 0;
this.happySpeed = 30;
this.happyIncCnt = 0;
this.contentment = 0;
this.mood = "happy";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.bottlePoints = 1000;
this.teddyPoints = 2000;
this.rockPoints = 2000;
this.burpPoints = 2000;
this.wipePoints = 1000;
this.nappyPoints = 1000;
};
babyObject.prototype.init = function (num) {
this.num = num;
this.thoughtBubble = thisScope["thought" + num];
this.bubbles = thisScope["bubbles" + num];
this.sprite = thisScope["babyMC" + num];
this.helpArrow = thisScope["helpArrow" + num];
this.cot = thisScope["cot" + num];
this.cotTop = thisScope["cotTop" + num];
this.shadowMC = thisScope["shadowMC" + num];
this.pointsMC = thisScope["pointsMC" + num];
};
babyObject.prototype.reset = function () {
this.lastRequest = null;
this.currentRequest = null;
this.animationMethod = null;
this.actuallyHolding = false;
this.thoughtBubble.happyMeter._x = 44;
this.bubbleDisplay = false;
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.thoughtBubble.happyMeter.gotoAndStop(3);
this.mood = "great";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.firstRun = true;
this.wipeCnt = 0;
this.sprite.wipeCnt = this.wipeCnt;
var _local2 = int(Math.random() * 3) + 1;
var _local3 = babyMC1._currentframe;
var _local4 = babyMC2._currentframe;
var _local5 = babyMC3._currentframe;
if (this.num == 2) {
if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
}
}
} else if (this.num == 3) {
if (_local4 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local4 == _local2) {
_local2++;
}
} else if (_local4 == _local2) {
_local2++;
}
}
}
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
};
babyObject.prototype.startBaby = function () {
this.getWaitingFirstTime();
this.currentMethod = this.waitingToAnnoy;
};
babyObject.prototype.getWaitingFirstTime = function () {
this.subdudeCnt = int(Math.random() * 2) + (this.num * 2);
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.getWaitingTime = function () {
this.bubbles.bubble1._alpha = (this.bubbles.bubble2._alpha = (this.bubbles.bubble3._alpha = 0));
var _local2 = 10 - int(seconds / 60);
if (_local2 < 2) {
_local2 = 2;
}
this.subdudeCnt = int(Math.random() * _local2) + 2;
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.waitingToAnnoy = function () {
if ((--this.subdudeCnt) == 0) {
this.getNewRequest();
this.currentBubble = 1;
this.bubbles._visible = true;
this.currentMethod = this.displayThoughts;
} else if ((this.subdudeCnt % this.happySpeed) == 0) {
if (babiesVolume > 0) {
babiesVolume = babiesVolume - 0.5;
} else {
babiesVolume = 0;
}
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width == 1)) {
this.contentment = 0;
return(undefined);
}
if (seconds > 120) {
var _local2 = 2;
} else {
var _local2 = 1;
}
this.contentment = this.contentment - _local2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._width <= 1) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
}
}
var _local3 = this.mood;
this.setMood();
if (_local3 != this.mood) {
this.resetAnimation();
}
}
};
babyObject.prototype.getNewRequest = function () {
var _local2 = int(Math.random() * 4) + 1;
if (_local2 == this.lastRequest) {
_local2++;
if (_local2 >= 6) {
_local2 = 1;
}
}
this.lastRequest = (this.currentRequest = _local2);
if (_local2 == 5) {
this.pantsFull = true;
playSound("tt_fart");
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
}
};
babyObject.prototype.increaseHappiness = function (amount) {
if ((++this.happyIncCnt) >= (this.happySpeed / 4)) {
this.happyIncCnt = 0;
if (amount != undefined) {
var _local2 = amount;
} else {
var _local2 = 1;
}
this.contentment = this.contentment + _local2;
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x + _local2;
if (this.thoughtBubble.happyMeter._x > 34) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._x > 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
}
}
} else {
this.thoughtBubble.happyMeter._x = 44;
if (this.thoughtBubble.happyMeter._width >= 10) {
this.thoughtBubble.happyMeter.gotoAndStop(3);
}
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + _local2;
if ((--babiesVolume) < 0) {
babiesVolume = 0;
}
if (this.currentRequest == 3) {
if (this.sprite._currentframe != 80) {
this.sprite.gotoAndPlay(80);
} else if (this.sprite.anim.faceAnim.animRunning == false) {
if (this.contentment >= 30) {
this.sprite.anim.faceAnim.gotoAndPlay("fifthPress");
} else if (this.contentment >= 25) {
this.sprite.anim.faceAnim.gotoAndPlay("forthPress");
} else if (this.contentment >= 15) {
this.sprite.anim.faceAnim.gotoAndPlay("thirdPress");
} else if (this.contentment >= 10) {
this.sprite.anim.faceAnim.gotoAndPlay("secondPress");
} else {
this.sprite.anim.faceAnim.gotoAndPlay("firstPress");
}
}
}
}
if (this.thoughtBubble.happyMeter._width >= 32) {
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.mood = "great";
if (this.pukeFlag == true) {
this.sprite.puke._alpha = 0;
checkingForDroppingWipe();
} else if (this.laughingFlag == true) {
checkingForDroppingTed();
} else if (this.currentRequest == 3) {
this.sprite.anim.faceAnim.gotoAndPlay("burp");
playSound("tt_burp");
this.burpFlag = true;
checkingForDroppingBurp();
} else if (this.currentRequest == 4) {
checkingForDroppingRock();
} else if (this.needsANappy == true) {
this.sprite.wipeCnt = (this.wipeCnt = 32);
this.needsAWipe = false;
checkingForDroppingWipe();
this.currentRequest = 7;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.decreaseHappiness;
return(undefined);
}
this.currentRequest = 0;
this.currentMethod = this.hideThoughtBubble;
} else {
this.setMood();
}
}
};
babyObject.prototype.decreaseHappiness = function () {
if ((++this.happyIncCnt) >= this.happySpeed) {
this.happyIncCnt = 0;
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width > 1)) {
if (seconds > 60) {
if (this.thoughtBubble.happyMeter._width <= 4) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 4;
this.contentment = this.contentment - 4;
}
} else if (this.thoughtBubble.happyMeter._width <= 2) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.contentment = this.contentment - 2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 2;
}
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
}
} else {
if (this.thoughtBubble.happyMeter._x <= 14) {
this.thoughtBubble.happyMeter._x = 14;
this.thoughtBubble.happyMeter._width = 28;
this.contentment = -30;
return(undefined);
}
if (seconds > 120) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 4;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 4;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 4;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 2;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 2;
}
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.pukeFlag == true) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("sickGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("sickHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("sickPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("sickGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.cotAnimatingFlag == true) {
this.increaseBabiesVolume();
return(undefined);
}
if ((this.needsAWipe == true) || (this.currentRequest == 7)) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.currentRequest == 5) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("shitGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("shitHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("shitPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("shitGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.contentment >= -2) {
if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndPlay("needsSomething2");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndPlay("needsSomething4");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndPlay("needsSomething3");
}
} else {
this.increaseBabiesVolume();
}
};
babyObject.prototype.increaseBabiesVolume = function () {
if ((this.happyIncCnt % 8) == 0) {
this.setMood();
if (this.contentment < -2) {
if (babiesVolume < 60) {
if (this.mood == "grumpy") {
babiesVolume++;
} else if (this.mood == "pissed") {
babiesVolume = babiesVolume + 2;
}
} else {
babiesVolume = 60;
}
}
}
};
babyObject.prototype.setMood = function () {
if (this.contentment > 25) {
this.mood = "great";
} else if (this.contentment >= -2) {
this.mood = "happy";
} else if (this.contentment <= -20) {
this.mood = "pissed";
} else {
this.mood = "grumpy";
}
};
babyObject.prototype.resetAnimation = function () {
if (this.contentment == 0) {
var _local2 = int(Math.random() * 3) + 1;
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
return(undefined);
}
var _local2 = int(Math.random() * 3);
if (this.mood == "happy") {
this.sprite.gotoAndPlay(_local2 + 30);
} else if (this.mood == "grumpy") {
this.sprite.gotoAndPlay(_local2 + 46);
} else if (this.mood == "pissed") {
this.sprite.gotoAndPlay(_local2 + 62);
} else {
this.sprite.gotoAndPlay(_local2 + 12);
}
};
babyObject.prototype.waitingToPuke = function () {
if ((++this.pukeCnt) == (frameRate * 2)) {
stopSound("tt_drinkingBottle");
this.pukeCnt = 0;
this.pukeFlag = true;
if (bottleBaby != 0) {
bottleBaby = 0;
this.actuallyHolding = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
bottle._visible = true;
}
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.sprite.gotoAndPlay("babyBeingSick");
this.currentMethod = this.puking;
}
};
babyObject.prototype.puking = function () {
if (this.sprite.anim._currentframe == 90) {
this.lastRequest = (this.currentRequest = 6);
this.bubbles._visible = true;
if (this.mood == "great") {
this.sprite.gotoAndStop("sickGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("sickHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("sickGrumpy");
} else {
this.sprite.gotoAndStop("sickPissed");
}
this.currentMethod = this.displayThoughts;
} else if (this.sprite.anim._currentframe == 60) {
playSound("tt_puke");
}
};
babyObject.prototype.waitingForBurpToEnd = function () {
if ((++this.burpCnt) == (frameRate * 2)) {
this.burpCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.nappyWhippedOff = function () {
this.wipeCnt = (this.sprite.wipeCnt = 0);
this.nappyWhippedOff2();
};
babyObject.prototype.nappyWhippedOff2 = function () {
if (this.mood == "great") {
this.sprite.gotoAndStop("nakedGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("nakedHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("nakedGrumpy");
} else {
this.sprite.gotoAndStop("nakedPissed");
}
this.sprite.anim.cloud.gotoAndPlay(1);
};
babyObject.prototype.needAWipe = function () {
this.pantsFull = false;
this.needsAWipe = true;
this.needsANappy = true;
this.wipeCnt = 0;
this.lastRequest = (this.currentRequest = 6);
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
};
babyObject.prototype.nappyNotInBin = function () {
this.currentMethod = this.decreaseHappiness;
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
binArrow._visible = false;
};
babyObject.prototype.nappyPutOn = function () {
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
}
this.currentRequest = 0;
playSound("tt_nappyOn");
this.setMood();
this.resetAnimation();
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.checkWipe = function () {
var _local4 = Math.abs(oldwipeCursorX - wipeCursor._x);
var _local3 = Math.abs(oldwipeCursorY - wipeCursor._y);
var _local2 = _local4 + _local3;
oldwipeCursorX = wipeCursor._x;
oldwipeCursorY = wipeCursor._y;
if ((_local2 >= 10) && (_local2 <= 60)) {
this.helpArrow._visible = false;
if (this.pukeFlag == true) {
if (this.contentment > 0) {
this.sprite.puke._alpha = 100 - (this.contentment * 2);
} else {
this.sprite.puke._alpha = 100;
}
} else {
if (this.sprite.anim.cloud == undefined) {
this.nappyWhippedOff2();
}
if (this.contentment >= -2) {
this.wipeCnt = this.wipeCnt + 2;
if (this.wipeCnt > 32) {
this.wipeCnt = 32;
}
this.sprite.wipeCnt = this.wipeCnt;
if (this.contentment > 0) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else {
this.wipeCnt = 0;
if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
this.sprite.anim.cloud.gotoAndPlay(1);
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
this.sprite.anim.cloud.gotoAndPlay(1);
}
}
}
if (_local2 >= 25) {
this.increaseHappiness(4);
} else if (_local2 >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.givenDummy = function () {
if (this.bubbleDisplay == false) {
return(undefined);
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.rocking == true) {
this.cotAnimatingFlag = false;
this.animationMethod = null;
}
this.laughingFlag = (this.pukeFlag = (this.burpFlag = (this.pantsFull = (this.needsANappy = (this.needsAWipe = false)))));
this.currentRequest = (this.dummyCnt = 0);
dummyScore.nextFrame();
if ((--dummys) <= 0) {
dummys = 0;
dummy._visible = false;
}
this.dummyFlag = true;
this.helpArrow._visible = false;
playSound("tt_suckingDummy", 50);
this.sprite.gotoAndPlay("babyWithDummy");
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.suckingDummy = function () {
if (this.sprite.anim._currentframe == this.sprite.anim._totalframes) {
if ((++this.dummyCnt) == 1) {
stopSound("tt_suckingDummy");
this.dummyFlag = false;
this.thoughtBubble.happyMeter._x == 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.dummyCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
};
babyObject.prototype.givenBottle = function () {
if (this.bubbleDisplay == false) {
return(false);
}
if (this.currentRequest == 1) {
this.helpArrow._visible = false;
playSound("tt_drinkingBottle", 50);
this.sprite.gotoAndPlay("babyWithBottle");
this.actuallyHolding = true;
bottleBaby = this.num;
bottleDroppedCnt = 10;
this.currentMethod = this.increaseHappiness;
return(true);
}
return(false);
};
babyObject.prototype.removedBottle = function () {
stopSound("tt_drinkingBottle");
this.actuallyHolding = false;
this.setMood();
this.resetAnimation();
bottleBaby = 0;
bottleDroppedCnt = 10;
if (this.currentRequest == 1) {
this.currentMethod = this.decreaseHappiness;
} else {
playSound("tt_lipSmacking");
this.pukeCnt = 0;
this.pukeFlag = false;
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.checkRock = function () {
var _local2 = Math.abs(oldRockCursorX - rock._y);
var _local3 = oldRockCursorX;
oldRockCursorX = rock._y;
if ((_local2 >= 10) && (_local2 <= 30)) {
if (this.cotAnimatingFlag == false) {
this.cotAnimatingFlag = true;
if (this.sprite._currentframe != 200) {
this.sprite.gotoAndPlay(200);
this.animationMethod = this.handleCotAnimation;
this.helpArrow._visible = false;
this.rocking = true;
}
if (_local3 < rock._y) {
this.cotDirection = "Top";
this.cot.gotoAndPlay(31);
this.cotTop.gotoAndPlay(31);
this.shadowMC.gotoAndPlay(31);
this.sprite.anim.gotoAndPlay(31);
} else {
this.cotDirection = "Bottom";
this.cot.gotoAndPlay(2);
this.cotTop.gotoAndPlay(2);
this.shadowMC.gotoAndPlay(2);
this.sprite.anim.gotoAndPlay(2);
}
playSound("tt_cradleRocked");
}
this.increaseHappiness();
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.handleCotAnimation = function () {
if (this.cotDirection == "Bottom") {
if (this.cot._currentframe == 31) {
this.cotDirection = null;
this.cot.gotoAndStop(31);
this.cotTop.gotoAndStop(31);
this.shadowMC.gotoAndStop(31);
this.sprite.anim.gotoAndStop(31);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
} else if (this.cotDirection == "Top") {
if (this.cot._currentframe == 1) {
this.cotDirection = null;
this.cot.gotoAndStop(1);
this.cotTop.gotoAndStop(1);
this.shadowMC.gotoAndStop(1);
this.sprite.anim.gotoAndStop(1);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
}
};
babyObject.prototype.checkBurp = function () {
var _local2 = Math.abs(oldBurpCursorX - burp._x);
oldBurpCursorX = burp._x;
if ((_local2 >= 10) && (_local2 <= 30)) {
this.helpArrow._visible = false;
if (total >= 25) {
this.increaseHappiness(4);
} else if (total >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.checkTeddy = function () {
var _local4 = Math.abs(oldTeddyCursorX - teddy._x);
var _local3 = Math.abs(oldTeddyCursorY - teddy._y);
var _local2 = _local4 + _local3;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
if ((_local2 >= 10) && (_local2 <= 50)) {
this.helpArrow._visible = false;
if (this.contentment >= 10) {
if (this.laughingFlag == false) {
this.laughingFlag = true;
this.sprite.gotoAndPlay("babyLaughing");
}
}
if (_local2 >= 40) {
this.increaseHappiness(4);
} else if (_local2 >= 30) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.displayThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha + 50;
if (_local2._alpha >= 100) {
_local2._alpha = 100;
if ((++this.currentBubble) == 4) {
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = true;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.displayThoughtBubble;
}
}
};
babyObject.prototype.displayThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha + 25;
if (this.thoughtBubble._alpha >= 100) {
this.thoughtBubble._alpha = 100;
this.bubbleDisplay = true;
this.currentMethod = this.decreaseHappiness;
}
};
babyObject.prototype.hideThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha - 25;
if (this.thoughtBubble._alpha <= 0) {
this.bubbleDisplay = false;
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = false;
this.currentBubble = 3;
this.currentMethod = this.hideThoughts;
}
};
babyObject.prototype.hideThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha - 50;
if (_local2._alpha <= 0) {
_local2._alpha = 0;
if ((--this.currentBubble) < 0) {
this.bubbles._visible = true;
this.bubbleDisplay = false;
if ((this.lastRequest == 1) && (this.dummyFlag != true)) {
this.pukeCnt = 0;
this.pukeFlag = false;
this.plotPoints(this.bottlePoints);
this.currentMethod = this.waitingToPuke;
} else {
if (this.pukeFlag == true) {
this.plotPoints(this.wipePoints);
this.pukeFlag = false;
this.setMood();
this.resetAnimation();
} else if (this.laughingFlag == true) {
this.plotPoints(this.teddyPoints);
this.laughingFlag = false;
} else {
if (this.dummyFlag == true) {
this.dummyCnt = 0;
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
this.currentMethod = this.suckingDummy;
return(undefined);
}
if (this.burpFlag == true) {
this.plotPoints(this.burpPoints);
this.burpFlag = false;
this.burpCnt = 0;
this.currentMethod = this.waitingForBurpToEnd;
return(undefined);
}
if (this.rocking == true) {
this.rocking = false;
this.plotPoints(this.rockPoints);
return(undefined);
}
if (this.needsANappy == true) {
this.needsANappy = false;
this.plotPoints(2000);
}
}
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
}
};
babyObject.prototype.plotPoints = function (pointsToAdd) {
score = score + pointsToAdd;
infoBar.score.text = score;
if (pointsToAdd == 500) {
this.pointsMC.gotoAndStop(1);
} else if (pointsToAdd == 1000) {
this.pointsMC.gotoAndStop(2);
} else {
this.pointsMC.gotoAndStop(3);
}
this.pointsMC._visible = true;
this.pointsMC.anim.gotoAndPlay(1);
playSound("tt_points");
this.particlesInit(4);
};
babyObject.prototype.particlesInit = function (numberOfParticles) {
var _local2 = null;
var _local4 = 0;
var _local3 = fxPlayField.getNextHighestDepth();
while (_local4++ , _local4 != (numberOfParticles + 1)) {
_local2 = fxPlayField.attachMovie("flowerMC", "p" + _local3, _local3++);
_local2.xposition = (_local2._x = this.pointsMC._x);
_local2.yposition = (_local2._y = this.pointsMC._y);
_local2.xvel = (Math.random() * 10) - 5;
_local2.yvel = (Math.random() * 10) - 5;
_local2.gravity = 0.5;
_local2._xscale = (_local2._yscale = int(Math.random() * 100) + 50);
_local2.onEnterFrame = function () {
this.yposition = this.yposition + this.yvel;
this.yvel = this.yvel + this.gravity;
this.xposition = this.xposition + this.xvel;
this._y = this.yposition;
this._x = this.xposition;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Instance of Symbol 458 MovieClip "binArrow" in Frame 235
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC1" in Frame 235
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC2" in Frame 235
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC3" in Frame 235
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 341 MovieClip "bottle" in Frame 235
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 443 MovieClip "rock" in Frame 235
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Frame 235
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Frame 235
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Frame 235
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Frame 235
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 481 MovieClip in Frame 235
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 489 MovieClip "dad" in Frame 235
onClipEvent (load) {
this.gotoAndStop(1);
_visible = false;
}
Instance of Symbol 491 MovieClip "mum" in Frame 235
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow1" in Frame 235
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow2" in Frame 235
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow3" in Frame 235
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 493 MovieClip "dummy" in Frame 235
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
Instance of Symbol 494 MovieClip "dummyScore" in Frame 235
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 496 MovieClip "speechBubble" in Frame 235
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 498 MovieClip "wipeCursor" in Frame 235
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.babyMC1.hitAreaPuke)) {
this.babyMC1.anim.nextFrame();
}
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 444 MovieClip "nappyCursor" in Frame 235
onClipEvent (load) {
_visible = false;
}
on (release) {
_visible = false;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 597 MovieClip "coverAll" in Frame 235
onClipEvent (load) {
this.useHandCursor = false;
}
Frame 236
var mc = null;
var mcd = 0;
for (mcd in thisScope) {
if (typeof(thisScope[mcd]) == "") {
thisScope[mcd].gotoAndStop(25);
}
}
init();
stop();
Frame 254
this.cngtxt2();
this.comtxt2();
this.nxttxt2();
lives == 0;
gameOver();
totalTime.text = seconds;
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clapins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clapins = new Sound(this._parent.BS_clapins);
} else {
this.createEmptyMovieClip("_clapins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clapins = new Sound(this.BS_clapins);
}
_global.Behaviors.Sound.clapins.attachSound("clapsnd");
_global.Behaviors.Sound.clapins.start(0, 1);
} else {
_global.Behaviors.Sound.clapins.stop("clapsnd");
}
Frame 256
function leveltxt2() {
attract.level_txt2.text = "Level 3";
}
function tryagain2() {
attract.try_text2.text = "Try Again";
}
function cngtxt2() {
cng_txt2.text = "Congratulations";
}
function comtxt2() {
com_txt2.text = "you have completed Level 2";
}
function nxttxt2() {
nxt_txt2.text = "Next Level";
}
var lvlscore2 = "80000";
infoBar.secondtotalscore.text = "80000";
startGame();
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
pointer_mc1._x = _xmouse;
pointer_mc1._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
function playGreatSFX() {
var _local1 = int(Math.random() * 5);
if (_local1 <= 3) {
playSound("tt_giggle");
} else if (_local1 == 4) {
playSound("tt_content");
} else {
playSound("tt_gurgle2");
}
}
function playHappySFX() {
var _local1 = int(Math.random() * 6);
if (_local1 <= 1) {
playSound("tt_softPant");
} else if (_local1 == 2) {
playSound("tt_gurgle1");
} else if (_local1 == 3) {
playSound("tt_gurgle2");
} else if (_local1 == 4) {
playSound("tt_gurgle3");
} else if (_local1 == 5) {
playSound("tt_gurgle4");
} else {
playSound("tt_content");
}
}
function playGrumpySFX() {
var _local1 = int(Math.random() * 4);
if (_local1 <= 1) {
playSound("tt_wantingSomethingGrumpy");
} else if (_local1 == 2) {
playSound("tt_grumpy");
} else if (_local1 == 3) {
playSound("tt_cry1");
} else {
playSound("tt_cry2");
}
}
function playPissedSFX() {
var _local1 = int(Math.random() * 3);
if (_local1 <= 1) {
playSound("tt_scream");
} else if (_local1 == 2) {
playSound("tt_scream2");
} else {
playSound("tt_scream3");
}
}
function init() {
gameBroadcastObject.broadcastMessage("gameLoaded");
eventHandlerInit();
baby1 = new babyObject();
baby1.init(1);
baby2 = new babyObject();
baby2.init(2);
baby3 = new babyObject();
baby3.init(3);
var _local2 = {};
_local2.bestScore = 0;
ids = new com.preloaded.IDStore("levelup", "ttriplets", _local2);
bestScore = this.ids.props.bestScore;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
attractMode();
}
};
}
function attractMode() {
attract._visible = true;
coverAll._visible = false;
attract.gotoAndPlay(2);
}
function attractModeKill() {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
attract.gotoAndPlay(1);
attract._visible = false;
continueGame();
this._alpha = 100;
this.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
gameIntroStart();
}
};
}
};
}
function startGame() {
attractModeKill();
level = 1;
score = (infoBar.score.text = 0);
dummyScore.gotoAndStop(1);
dummys = 3;
lives = 3;
infoBar._y = -infoBar._height;
if (parent != mum) {
parent = mum;
dad._visible = false;
dad.gotoAndStop(1);
parentSFX = "tt_mumSnore";
parentSFX2 = "tt_mumTalking";
} else {
parent = dad;
mum._visible = false;
mum.gotoAndStop(1);
parentSFX = "tt_dadSnore";
parentSFX2 = "tt_dadTalking";
}
parent._visible = true;
}
function continueGame() {
infoBar.time.text = (tick = (seconds = (babiesVolume = 0)));
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
parent.gotoAndPlay("speaking");
}
function gameIntroStart() {
this.onEnterFrame = function () {
infoBar._y--;
if (infoBar._y <= (-infoBar._height)) {
delete this.onEnterFrame;
plotSpeech();
}
};
}
function plotSpeech() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 5;
speechBubble._visible = true;
var _local2 = int(Math.random() * speech.length);
var currentSpeech = speech[_local2];
var textOffset = 0;
var genCnt = 0;
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
}
};
}
};
}
};
}
function prepareToGo() {
parent.gotoAndPlay("sleeping");
playSound(parentSFX, 999999);
baby1.startBaby();
baby2.startBaby();
baby3.startBaby();
babiesVolume = 0;
monitor.gotoAndStop(1);
this.onEnterFrame = function () {
infoBar._y = infoBar._y + 40;
if (infoBar._y >= 502) {
infoBar._y = 502;
playerInit();
this.onEnterFrame = master;
}
};
}
function houseKeeping() {
var _local2 = null;
var _local4 = null;
var _local3 = 0;
while (_local3++ , _local3 != 4) {
_local2 = this["thought" + _local3];
_local2._visible = false;
_local2._alpha = 0;
_local2 = this["bubbles" + _local3];
_local2._visible = false;
_local4 = _local2["bubbles" + _local3];
_local2.bubble1._alpha = (_local2.bubble2._alpha = (_local2.bubble3._alpha = 0));
this["helpArrow" + _local3]._visible = false;
}
bin.gotoAndStop(1);
binArrow._visible = false;
playerKill();
stopAnims(babyMC1);
stopAnims(babyMC2);
stopAnims(babyMC3);
killSounds();
}
function stopAnims(mc) {
for (var _local3 in mc) {
if (typeof(mc[_local3]) == "movieclip") {
mc[_local3].gotoAndStop(mc[_local3]._currentframe);
for (var _local2 in mc[_local3]) {
if (typeof(mc[_local3][_local2]) == "movieclip") {
mc[_local3][_local2].gotoAndStop(mc[_local3][_local2]._currentframe);
}
}
}
}
}
function lifeLost() {
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
if (lives == 1) {
parent.gotoAndPlay("speaking");
} else {
parent.gotoAndPlay("wakingUp");
}
stopSound(parentSFX);
plotSpeechlifeLost();
}
function plotSpeechlifeLost() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 15;
speechBubble._visible = true;
lives--;
if (lives != 0) {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
}
var currentSpeech = speechLifeLost[lives];
var textOffset = 0;
var genCnt = 0;
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
if (lives == 0) {
gameOver();
} else {
prepareToGo();
}
}
};
}
};
}
};
}
};
}
function gameOver() {
attract.gotoAndPlay("gameOver");
}
function playerInit() {
bottleBaby = (bottleDroppedCnt = 0);
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
currentSelection = null;
Mouse.addListener(playerMouseListener);
}
function playerKill() {
playerMouseListener.onMouseDown = (playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null));
Mouse.removeListener(playerMouseListener);
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
rock._x = rock.orignalX;
rock._y = rock.orignalY;
burp._x = burp.orignalX;
burp._y = burp.orignalY;
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
wipeCursor._visible = (nappyCursor._visible = false);
stopDrag();
}
function playerDecCounters() {
bottleDroppedCnt--;
}
function waitingToPickUp() {
var _local3 = thisScope._xmouse;
var _local2 = thisScope._ymouse;
if (bottleBaby == 0) {
if (bottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
currentSelection = "bottle";
playSound("tt_buttonPressed");
if (bottleArrowCnt < 3) {
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else if (baby3.currentRequest == 1) {
var _local1 = 3;
}
if (_local1 != undefined) {
bottleArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(2);
thisScope["helpArrow" + _local1]._visible = true;
}
}
startDrag ("bottle");
}
} else if (bottleDroppedCnt <= 0) {
if (thisScope["babyMC" + bottleBaby].hitAreaBottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
bottle._visible = true;
bottle._x = _local3 - (bottle._width / 2);
bottle._y = _local2 - (bottle._height / 2);
thisScope["baby" + bottleBaby].removedBottle();
currentSelection = "bottle";
playSound("tt_pop");
startDrag ("bottle");
}
}
if (wipe.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingWipe;
playerMouseListener.onMouseMove = checkingForUsingWipe;
oldwipeCursorX = (wipeCursor._x = _local3 - (wipeCursor._width / 2));
oldwipeCursorY = (wipeCursor._y = _local2 - (wipeCursor._height / 2));
wipeCursor._visible = true;
currentSelection = "wipe";
if (wipeArrowCnt < 3) {
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else if (baby3.currentRequest == 6) {
var _local1 = 3;
}
if (_local1 != undefined) {
wipeArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(4);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
playSound("tt_pickingUpAWipe");
startDrag ("wipeCursor");
}
if (teddy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingTed;
playerMouseListener.onMouseMove = checkingForUsingTed;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
currentSelection = "teddy";
playSound("tt_teddy", 50);
playSound("tt_buttonPressed");
if (teddyArrowCnt < 3) {
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 2) {
var _local1 = 2;
} else if (baby3.currentRequest == 2) {
var _local1 = 3;
}
if (_local1 != undefined) {
teddyArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(7);
thisScope["helpArrow" + _local1]._visible = true;
}
}
teddy.gotoAndPlay("generalAnimation");
startDrag ("teddy");
}
if (dummys != 0) {
if (dummy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingDummy;
currentSelection = "dummy";
playSound("tt_buttonPressed");
startDrag ("dummy");
}
}
if (burp.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingBurp;
playerMouseListener.onMouseMove = checkingForUsingBurp;
oldBurpCursorX = burp._x;
oldBurpCursorY = burp._y;
currentSelection = "burp";
if (burpArrowCnt < 3) {
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else if (baby3.currentRequest == 3) {
var _local1 = 3;
}
if (_local1 != undefined) {
burpArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(6);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("burp");
}
if (rock.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingRock;
playerMouseListener.onMouseMove = checkingForUsingRock;
oldRockCursorX = rock._x;
currentSelection = "rock";
if (rockArrowCnt < 3) {
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else if (baby3.currentRequest == 4) {
var _local1 = 3;
}
if (_local1 != undefined) {
rockArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(5);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("rock");
}
if (baby1.pantsFull == true) {
if (babyMC1.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby1.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby1;
nappyCursor._visible = true;
baby1.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby2.pantsFull == true) {
if (babyMC2.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby2.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby2;
nappyCursor._visible = true;
baby2.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby3.pantsFull == true) {
if (babyMC3.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby3.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby3;
nappyCursor._visible = true;
baby3.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (nappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForNappyIcon;
nappy.flowers.gotoAndStop(1);
nappy.flowers._visible = false;
currentSelection = "nappy2";
playSound("tt_buttonPressed");
startDrag ("nappy");
}
}
function checkingForNappyIcon() {
if (currentSelection != "nappy2") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (baby1.needsANappy == true) {
if (baby1.needsAWipe == false) {
if (nappy.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.nappyPutOn;
}
}
}
if (baby2.needsANappy == true) {
if (baby2.needsAWipe == false) {
if (nappy.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.nappyPutOn;
}
}
}
if (baby3.needsANappy == true) {
if (baby3.needsAWipe == false) {
if (nappy.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.nappyPutOn;
}
}
}
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
}
function checkingForDroppingNappy() {
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
nappyCursor._visible = false;
if (nappyCursor.hitTest(bin.hitAreaMC)) {
nappyCursor._visible = false;
binArrow._visible = false;
playSound("tt_binClose");
nappyCursor.babyObj.needAWipe();
} else {
nappyCursor.babyObj.nappyNotInBin();
nappyCursor._visible = false;
}
bin.gotoAndStop(1);
}
function checkingForUsingRock() {
if (baby1.currentRequest == 4) {
if (baby1.bubbleDisplay == true) {
if (rock.hitTest(babyMC1.hitAreaRock)) {
baby1.currentMethod = baby1.checkRock;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 4) {
if (baby2.bubbleDisplay == true) {
if (rock.hitTest(babyMC2.hitAreaRock)) {
baby2.currentMethod = baby2.checkRock;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 4) {
if (baby3.bubbleDisplay == true) {
if (rock.hitTest(babyMC3.hitAreaRock)) {
baby3.currentMethod = baby3.checkRock;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingRock() {
if (currentSelection != "rock") {
return(undefined);
}
currentSelection = null;
stopDrag();
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
rock._x = rock.orignalX;
rock._y = rock.orignalY;
}
function checkingForUsingBurp() {
if (baby1.currentRequest == 3) {
if (baby1.bubbleDisplay == true) {
if (burp.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkBurp;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 3) {
if (baby2.bubbleDisplay == true) {
if (burp.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkBurp;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 3) {
if (baby3.bubbleDisplay == true) {
if (burp.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkBurp;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingBurp() {
if (currentSelection != "burp") {
return(undefined);
}
currentSelection = null;
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
burp._x = burp.orignalX;
burp._y = burp.orignalY;
}
function checkingForDroppingDummy() {
if (currentSelection != "dummy") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (dummy.hitTest(babyMC1.hitAreaHead)) {
baby1.givenDummy();
} else if (dummy.hitTest(babyMC2.hitAreaHead)) {
baby2.givenDummy();
} else if (dummy.hitTest(babyMC3.hitAreaHead)) {
baby3.givenDummy();
}
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
}
function checkingForUsingTed() {
if (baby1.currentRequest == 2) {
if (baby1.bubbleDisplay == true) {
if (teddy.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkTeddy;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 2) {
if (baby2.bubbleDisplay == true) {
if (teddy.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkTeddy;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 2) {
if (baby3.bubbleDisplay == true) {
if (teddy.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkTeddy;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingTed() {
if (currentSelection != "teddy") {
return(undefined);
}
currentSelection = null;
stopDrag();
stopSound("tt_teddy");
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
teddy.gotoAndStop(1);
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
}
function checkingForUsingWipe() {
if ((baby1.pukeFlag == true) || (baby1.needsANappy == true)) {
if (baby1.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.checkWipe;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if ((baby2.pukeFlag == true) || (baby2.needsANappy == true)) {
if (baby2.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.checkWipe;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if ((baby3.pukeFlag == true) || (baby3.needsANappy == true)) {
if (baby3.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.checkWipe;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingWipe() {
if (currentSelection != "wipe") {
return(undefined);
}
currentSelection = null;
wipeCursor._visible = false;
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
}
function checkingForDroppedBottle() {
if (currentSelection != "bottle") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (bottle.hitTest(babyMC1.hitAreaHead)) {
if (baby1.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC2.hitAreaHead)) {
if (baby2.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC3.hitAreaHead)) {
if (baby3.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
}
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
}
function master() {
baby1.currentMethod();
baby1.animationMethod();
baby2.currentMethod();
baby2.animationMethod();
baby3.currentMethod();
baby3.animationMethod();
playerDecCounters();
handleTimer();
if (Key.isDown(27)) {
killSounds();
coverAll._alpha = 0;
coverAll._visible = true;
this.onEnterFrame = function () {
coverAll._alpha = coverAll._alpha + 20;
if (coverAll._alpha >= 100) {
coverAll._alpha = 100;
delete this.onEnterFrame;
houseKeeping();
attractMode();
}
};
}
}
function handleTimer() {
if ((++tick) == frameRate) {
tick = 0;
seconds++;
infoBar.time.text = seconds;
if ((seconds % 5) == 0) {
score = score + 500;
infoBar.score.text = score;
}
if (score >= lvlscore2) {
gotoAndPlay ("lvl3");
}
} else if ((tick % 5) == 0) {
handleMonitor();
}
}
function handleMonitor() {
var _local2 = (babiesVolume / 70) * 100;
_local2 = _local2 / 10;
_local2 = int(_local2);
monitor.gotoAndStop(_local2);
if (_local2 >= 8) {
delete this.onEnterFrame;
lifeLost();
}
}
var ver = "ver$0.1 - 2006_03_20";
if (frameRate == undefined) {
_global.frameRate = 31;
}
_global.thisScope = this;
var gameBroadcastObject = new Object();
if (thisScope == _root) {
var standalone = true;
var colorTest = 1;
var playerName = "Terrible Triplets";
} else {
var standalone = false;
var playerName = _root.profile.getPlayerName();
if (playerName == undefined) {
playerName = "Terrible Triplets";
}
var colorTest = _root.profile.getPlayerSkinOffset();
if (colorTest == undefined) {
colorTest = 1;
}
AsBroadcaster.initialize(gameBroadcastObject);
gameBroadcastObject.addListener(_parent._parent.listenerObject);
}
var score = 0;
var level = 1;
var babiesVolume = 0;
var lives = 3;
var bestScore = 0;
var binArrowCnt = 0;
var bottleArrowCnt = 0;
var soiledNappyCnt = 0;
var wipeArrowCnt = 0;
var rockArrowCnt = 0;
var burpArrowCnt = 0;
var teddyArrowCnt = 0;
var baby1 = null;
var baby2 = null;
var baby3 = null;
var bottleBaby = 0;
var bottleDroppedCnt = 0;
var oldwipeCursorX = 0;
var oldwipeCursorY = 0;
var oldTeddyCursorX = 0;
var oldTeddyCursorY = 0;
var dummys = 3;
var oldBurpCursorX = 0;
var oldBurpCursorY = 0;
var oldRockCursorX = 0;
var currentSelection = null;
var tick = 0;
var seconds = 0;
var listenerObject = new Object();
var playerMouseListener = new Object();
var masterVolume = 100;
var parent = null;
var parentSFX = null;
var parentSFX2 = null;
attract.newSound("tt_titleMod");
this.newSound("tt_points");
this.newSound("tt_buttonPressed");
this.newSound("tt_cradleRocked");
this.newSound("tt_binOpening");
this.newSound("tt_binClose");
this.newSound("tt_nappyOn");
this.newSound("tt_nappyOff");
this.newSound("tt_teddy");
this.newSound("tt_puke");
this.newSound("tt_burp");
this.newSound("tt_fart");
this.newSound("tt_mumSnore");
this.newSound("tt_mumTalking");
this.newSound("tt_dadSnore");
this.newSound("tt_dadTalking");
this.newSound("tt_pop");
this.newSound("tt_pickingUpAWipe");
this.newSound("tt_suckingDummy");
this.newSound("tt_drinkingBottle");
this.newSound("tt_lipSmacking");
this.newSound("tt_giggle");
this.newSound("tt_gurgle1");
this.newSound("tt_gurgle2");
this.newSound("tt_gurgle3");
this.newSound("tt_gurgle4");
this.newSound("tt_content");
this.newSound("tt_softPant");
this.newSound("tt_wantingSomethingGrumpy");
this.newSound("tt_grumpy");
this.newSound("tt_cry1");
this.newSound("tt_cry2");
this.newSound("tt_scream");
this.newSound("tt_scream2");
this.newSound("tt_scream3");
if (standalone == true) {
var path = "com.preloaded";
var a = path.split(".");
var o = _global;
var i = 0;
while (i < a.length) {
var name = a[i];
if (o[name] == undefined) {
o[name] = new Object();
}
o = o[name];
i++;
}
var ob = com.preloaded;
ob.IDStore = function (site, solname, props) {
this.site = site;
this.solname = solname;
this.props = props;
EventBroadcaster.initialize(this);
this.addListener(_root.dBugger);
this.addListener(_root.base);
this.cookie = SharedObject.getLocal((this.site + "/") + this.solname);
this.cookie.data.lastAccess = new Date();
this.cookie.flush();
if (this.cookie.data.lastModified) {
dBug("COOKIE: existed already");
this.loadLocal();
} else {
dBug("COOKIE: didn't exist already");
this.saveLocal();
dBug("this.saveLocal = " + this.saveLocal);
dBug("*******SAVED?");
}
};
ob.IDStore.prototype.loadLocal = function () {
for (var _local2 in this.props) {
this.props[_local2] = this.cookie.data[_local2];
}
};
ob.IDStore.prototype.saveLocal = function () {
dBug(("this.saveLocal(" + this.props) + ")");
for (var _local2 in this.props) {
this.cookie.data[_local2] = this.props[_local2];
dBug(((("saving props." + _local2) + " (") + this.props[_local2]) + ") to cookie");
}
this.cookie.data.lastModified = new Date();
this.cookie.flush();
};
}
var speech = new Array("Try to Care them");
var speechLifeLost = new Array("Try Next Time", "");
babyObject = function () {
this.num = 0;
this.currentMethod = null;
this.animationMethod = null;
this.thoughtBubble = null;
this.bubbles = null;
this.currentBubble = 1;
this.helpArrow = null;
this.bubbleDisplay = false;
this.sprite = null;
this.cot = null;
this.cotTop = null;
this.shadowMC = null;
this.pointsMC = null;
this.wipeCnt = 0;
this.lastRequest = null;
this.currentRequest = null;
this.actuallyHolding = false;
this.subdudeCnt = 0;
this.happySpeed = 30;
this.happyIncCnt = 0;
this.contentment = 0;
this.mood = "happy";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.bottlePoints = 1000;
this.teddyPoints = 2000;
this.rockPoints = 2000;
this.burpPoints = 2000;
this.wipePoints = 1000;
this.nappyPoints = 1000;
};
babyObject.prototype.init = function (num) {
this.num = num;
this.thoughtBubble = thisScope["thought" + num];
this.bubbles = thisScope["bubbles" + num];
this.sprite = thisScope["babyMC" + num];
this.helpArrow = thisScope["helpArrow" + num];
this.cot = thisScope["cot" + num];
this.cotTop = thisScope["cotTop" + num];
this.shadowMC = thisScope["shadowMC" + num];
this.pointsMC = thisScope["pointsMC" + num];
};
babyObject.prototype.reset = function () {
this.lastRequest = null;
this.currentRequest = null;
this.animationMethod = null;
this.actuallyHolding = false;
this.thoughtBubble.happyMeter._x = 44;
this.bubbleDisplay = false;
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.thoughtBubble.happyMeter.gotoAndStop(3);
this.mood = "great";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.firstRun = true;
this.wipeCnt = 0;
this.sprite.wipeCnt = this.wipeCnt;
var _local2 = int(Math.random() * 3) + 1;
var _local3 = babyMC1._currentframe;
var _local4 = babyMC2._currentframe;
var _local5 = babyMC3._currentframe;
if (this.num == 2) {
if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
}
}
} else if (this.num == 3) {
if (_local4 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local4 == _local2) {
_local2++;
}
} else if (_local4 == _local2) {
_local2++;
}
}
}
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
};
babyObject.prototype.startBaby = function () {
this.getWaitingFirstTime();
this.currentMethod = this.waitingToAnnoy;
};
babyObject.prototype.getWaitingFirstTime = function () {
this.subdudeCnt = int(Math.random() * 2) + (this.num * 2);
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.getWaitingTime = function () {
this.bubbles.bubble1._alpha = (this.bubbles.bubble2._alpha = (this.bubbles.bubble3._alpha = 0));
var _local2 = 10 - int(seconds / 60);
if (_local2 < 2) {
_local2 = 2;
}
this.subdudeCnt = int(Math.random() * _local2) + 2;
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.waitingToAnnoy = function () {
if ((--this.subdudeCnt) == 0) {
this.getNewRequest();
this.currentBubble = 1;
this.bubbles._visible = true;
this.currentMethod = this.displayThoughts;
} else if ((this.subdudeCnt % this.happySpeed) == 0) {
if (babiesVolume > 0) {
babiesVolume = babiesVolume - 0.5;
} else {
babiesVolume = 0;
}
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width == 1)) {
this.contentment = 0;
return(undefined);
}
if (seconds > 120) {
var _local2 = 2;
} else {
var _local2 = 1;
}
this.contentment = this.contentment - _local2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._width <= 1) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
}
}
var _local3 = this.mood;
this.setMood();
if (_local3 != this.mood) {
this.resetAnimation();
}
}
};
babyObject.prototype.getNewRequest = function () {
var _local2 = int(Math.random() * 4) + 1;
if (_local2 == this.lastRequest) {
_local2++;
if (_local2 >= 6) {
_local2 = 1;
}
}
this.lastRequest = (this.currentRequest = _local2);
if (_local2 == 5) {
this.pantsFull = true;
playSound("tt_fart");
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
}
};
babyObject.prototype.increaseHappiness = function (amount) {
if ((++this.happyIncCnt) >= (this.happySpeed / 4)) {
this.happyIncCnt = 0;
if (amount != undefined) {
var _local2 = amount;
} else {
var _local2 = 1;
}
this.contentment = this.contentment + _local2;
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x + _local2;
if (this.thoughtBubble.happyMeter._x > 34) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._x > 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
}
}
} else {
this.thoughtBubble.happyMeter._x = 44;
if (this.thoughtBubble.happyMeter._width >= 10) {
this.thoughtBubble.happyMeter.gotoAndStop(3);
}
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + _local2;
if ((--babiesVolume) < 0) {
babiesVolume = 0;
}
if (this.currentRequest == 3) {
if (this.sprite._currentframe != 80) {
this.sprite.gotoAndPlay(80);
} else if (this.sprite.anim.faceAnim.animRunning == false) {
if (this.contentment >= 30) {
this.sprite.anim.faceAnim.gotoAndPlay("fifthPress");
} else if (this.contentment >= 25) {
this.sprite.anim.faceAnim.gotoAndPlay("forthPress");
} else if (this.contentment >= 15) {
this.sprite.anim.faceAnim.gotoAndPlay("thirdPress");
} else if (this.contentment >= 10) {
this.sprite.anim.faceAnim.gotoAndPlay("secondPress");
} else {
this.sprite.anim.faceAnim.gotoAndPlay("firstPress");
}
}
}
}
if (this.thoughtBubble.happyMeter._width >= 32) {
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.mood = "great";
if (this.pukeFlag == true) {
this.sprite.puke._alpha = 0;
checkingForDroppingWipe();
} else if (this.laughingFlag == true) {
checkingForDroppingTed();
} else if (this.currentRequest == 3) {
this.sprite.anim.faceAnim.gotoAndPlay("burp");
playSound("tt_burp");
this.burpFlag = true;
checkingForDroppingBurp();
} else if (this.currentRequest == 4) {
checkingForDroppingRock();
} else if (this.needsANappy == true) {
this.sprite.wipeCnt = (this.wipeCnt = 32);
this.needsAWipe = false;
checkingForDroppingWipe();
this.currentRequest = 7;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.decreaseHappiness;
return(undefined);
}
this.currentRequest = 0;
this.currentMethod = this.hideThoughtBubble;
} else {
this.setMood();
}
}
};
babyObject.prototype.decreaseHappiness = function () {
if ((++this.happyIncCnt) >= this.happySpeed) {
this.happyIncCnt = 0;
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width > 1)) {
if (seconds > 60) {
if (this.thoughtBubble.happyMeter._width <= 4) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 4;
this.contentment = this.contentment - 4;
}
} else if (this.thoughtBubble.happyMeter._width <= 2) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.contentment = this.contentment - 2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 2;
}
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
}
} else {
if (this.thoughtBubble.happyMeter._x <= 14) {
this.thoughtBubble.happyMeter._x = 14;
this.thoughtBubble.happyMeter._width = 28;
this.contentment = -30;
return(undefined);
}
if (seconds > 120) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 4;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 4;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 4;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 2;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 2;
}
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.pukeFlag == true) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("sickGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("sickHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("sickPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("sickGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.cotAnimatingFlag == true) {
this.increaseBabiesVolume();
return(undefined);
}
if ((this.needsAWipe == true) || (this.currentRequest == 7)) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.currentRequest == 5) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("shitGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("shitHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("shitPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("shitGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.contentment >= -2) {
if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndPlay("needsSomething2");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndPlay("needsSomething4");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndPlay("needsSomething3");
}
} else {
this.increaseBabiesVolume();
}
};
babyObject.prototype.increaseBabiesVolume = function () {
if ((this.happyIncCnt % 8) == 0) {
this.setMood();
if (this.contentment < -2) {
if (babiesVolume < 60) {
if (this.mood == "grumpy") {
babiesVolume++;
} else if (this.mood == "pissed") {
babiesVolume = babiesVolume + 2;
}
} else {
babiesVolume = 60;
}
}
}
};
babyObject.prototype.setMood = function () {
if (this.contentment > 25) {
this.mood = "great";
} else if (this.contentment >= -2) {
this.mood = "happy";
} else if (this.contentment <= -20) {
this.mood = "pissed";
} else {
this.mood = "grumpy";
}
};
babyObject.prototype.resetAnimation = function () {
if (this.contentment == 0) {
var _local2 = int(Math.random() * 3) + 1;
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
return(undefined);
}
var _local2 = int(Math.random() * 3);
if (this.mood == "happy") {
this.sprite.gotoAndPlay(_local2 + 30);
} else if (this.mood == "grumpy") {
this.sprite.gotoAndPlay(_local2 + 46);
} else if (this.mood == "pissed") {
this.sprite.gotoAndPlay(_local2 + 62);
} else {
this.sprite.gotoAndPlay(_local2 + 12);
}
};
babyObject.prototype.waitingToPuke = function () {
if ((++this.pukeCnt) == (frameRate * 2)) {
stopSound("tt_drinkingBottle");
this.pukeCnt = 0;
this.pukeFlag = true;
if (bottleBaby != 0) {
bottleBaby = 0;
this.actuallyHolding = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
bottle._visible = true;
}
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.sprite.gotoAndPlay("babyBeingSick");
this.currentMethod = this.puking;
}
};
babyObject.prototype.puking = function () {
if (this.sprite.anim._currentframe == 90) {
this.lastRequest = (this.currentRequest = 6);
this.bubbles._visible = true;
if (this.mood == "great") {
this.sprite.gotoAndStop("sickGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("sickHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("sickGrumpy");
} else {
this.sprite.gotoAndStop("sickPissed");
}
this.currentMethod = this.displayThoughts;
} else if (this.sprite.anim._currentframe == 60) {
playSound("tt_puke");
}
};
babyObject.prototype.waitingForBurpToEnd = function () {
if ((++this.burpCnt) == (frameRate * 2)) {
this.burpCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.nappyWhippedOff = function () {
this.wipeCnt = (this.sprite.wipeCnt = 0);
this.nappyWhippedOff2();
};
babyObject.prototype.nappyWhippedOff2 = function () {
if (this.mood == "great") {
this.sprite.gotoAndStop("nakedGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("nakedHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("nakedGrumpy");
} else {
this.sprite.gotoAndStop("nakedPissed");
}
this.sprite.anim.cloud.gotoAndPlay(1);
};
babyObject.prototype.needAWipe = function () {
this.pantsFull = false;
this.needsAWipe = true;
this.needsANappy = true;
this.wipeCnt = 0;
this.lastRequest = (this.currentRequest = 6);
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
};
babyObject.prototype.nappyNotInBin = function () {
this.currentMethod = this.decreaseHappiness;
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
binArrow._visible = false;
};
babyObject.prototype.nappyPutOn = function () {
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
}
this.currentRequest = 0;
playSound("tt_nappyOn");
this.setMood();
this.resetAnimation();
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.checkWipe = function () {
var _local4 = Math.abs(oldwipeCursorX - wipeCursor._x);
var _local3 = Math.abs(oldwipeCursorY - wipeCursor._y);
var _local2 = _local4 + _local3;
oldwipeCursorX = wipeCursor._x;
oldwipeCursorY = wipeCursor._y;
if ((_local2 >= 10) && (_local2 <= 60)) {
this.helpArrow._visible = false;
if (this.pukeFlag == true) {
if (this.contentment > 0) {
this.sprite.puke._alpha = 100 - (this.contentment * 2);
} else {
this.sprite.puke._alpha = 100;
}
} else {
if (this.sprite.anim.cloud == undefined) {
this.nappyWhippedOff2();
}
if (this.contentment >= -2) {
this.wipeCnt = this.wipeCnt + 2;
if (this.wipeCnt > 32) {
this.wipeCnt = 32;
}
this.sprite.wipeCnt = this.wipeCnt;
if (this.contentment > 0) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else {
this.wipeCnt = 0;
if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
this.sprite.anim.cloud.gotoAndPlay(1);
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
this.sprite.anim.cloud.gotoAndPlay(1);
}
}
}
if (_local2 >= 25) {
this.increaseHappiness(4);
} else if (_local2 >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.givenDummy = function () {
if (this.bubbleDisplay == false) {
return(undefined);
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.rocking == true) {
this.cotAnimatingFlag = false;
this.animationMethod = null;
}
this.laughingFlag = (this.pukeFlag = (this.burpFlag = (this.pantsFull = (this.needsANappy = (this.needsAWipe = false)))));
this.currentRequest = (this.dummyCnt = 0);
dummyScore.nextFrame();
if ((--dummys) <= 0) {
dummys = 0;
dummy._visible = false;
}
this.dummyFlag = true;
this.helpArrow._visible = false;
playSound("tt_suckingDummy", 50);
this.sprite.gotoAndPlay("babyWithDummy");
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.suckingDummy = function () {
if (this.sprite.anim._currentframe == this.sprite.anim._totalframes) {
if ((++this.dummyCnt) == 1) {
stopSound("tt_suckingDummy");
this.dummyFlag = false;
this.thoughtBubble.happyMeter._x == 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.dummyCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
};
babyObject.prototype.givenBottle = function () {
if (this.bubbleDisplay == false) {
return(false);
}
if (this.currentRequest == 1) {
this.helpArrow._visible = false;
playSound("tt_drinkingBottle", 50);
this.sprite.gotoAndPlay("babyWithBottle");
this.actuallyHolding = true;
bottleBaby = this.num;
bottleDroppedCnt = 10;
this.currentMethod = this.increaseHappiness;
return(true);
}
return(false);
};
babyObject.prototype.removedBottle = function () {
stopSound("tt_drinkingBottle");
this.actuallyHolding = false;
this.setMood();
this.resetAnimation();
bottleBaby = 0;
bottleDroppedCnt = 10;
if (this.currentRequest == 1) {
this.currentMethod = this.decreaseHappiness;
} else {
playSound("tt_lipSmacking");
this.pukeCnt = 0;
this.pukeFlag = false;
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.checkRock = function () {
var _local2 = Math.abs(oldRockCursorX - rock._y);
var _local3 = oldRockCursorX;
oldRockCursorX = rock._y;
if ((_local2 >= 10) && (_local2 <= 30)) {
if (this.cotAnimatingFlag == false) {
this.cotAnimatingFlag = true;
if (this.sprite._currentframe != 200) {
this.sprite.gotoAndPlay(200);
this.animationMethod = this.handleCotAnimation;
this.helpArrow._visible = false;
this.rocking = true;
}
if (_local3 < rock._y) {
this.cotDirection = "Top";
this.cot.gotoAndPlay(31);
this.cotTop.gotoAndPlay(31);
this.shadowMC.gotoAndPlay(31);
this.sprite.anim.gotoAndPlay(31);
} else {
this.cotDirection = "Bottom";
this.cot.gotoAndPlay(2);
this.cotTop.gotoAndPlay(2);
this.shadowMC.gotoAndPlay(2);
this.sprite.anim.gotoAndPlay(2);
}
playSound("tt_cradleRocked");
}
this.increaseHappiness();
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.handleCotAnimation = function () {
if (this.cotDirection == "Bottom") {
if (this.cot._currentframe == 31) {
this.cotDirection = null;
this.cot.gotoAndStop(31);
this.cotTop.gotoAndStop(31);
this.shadowMC.gotoAndStop(31);
this.sprite.anim.gotoAndStop(31);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
} else if (this.cotDirection == "Top") {
if (this.cot._currentframe == 1) {
this.cotDirection = null;
this.cot.gotoAndStop(1);
this.cotTop.gotoAndStop(1);
this.shadowMC.gotoAndStop(1);
this.sprite.anim.gotoAndStop(1);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
}
};
babyObject.prototype.checkBurp = function () {
var _local2 = Math.abs(oldBurpCursorX - burp._x);
oldBurpCursorX = burp._x;
if ((_local2 >= 10) && (_local2 <= 30)) {
this.helpArrow._visible = false;
if (total >= 25) {
this.increaseHappiness(4);
} else if (total >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.checkTeddy = function () {
var _local4 = Math.abs(oldTeddyCursorX - teddy._x);
var _local3 = Math.abs(oldTeddyCursorY - teddy._y);
var _local2 = _local4 + _local3;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
if ((_local2 >= 10) && (_local2 <= 50)) {
this.helpArrow._visible = false;
if (this.contentment >= 10) {
if (this.laughingFlag == false) {
this.laughingFlag = true;
this.sprite.gotoAndPlay("babyLaughing");
}
}
if (_local2 >= 40) {
this.increaseHappiness(4);
} else if (_local2 >= 30) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.displayThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha + 50;
if (_local2._alpha >= 100) {
_local2._alpha = 100;
if ((++this.currentBubble) == 4) {
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = true;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.displayThoughtBubble;
}
}
};
babyObject.prototype.displayThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha + 25;
if (this.thoughtBubble._alpha >= 100) {
this.thoughtBubble._alpha = 100;
this.bubbleDisplay = true;
this.currentMethod = this.decreaseHappiness;
}
};
babyObject.prototype.hideThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha - 25;
if (this.thoughtBubble._alpha <= 0) {
this.bubbleDisplay = false;
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = false;
this.currentBubble = 3;
this.currentMethod = this.hideThoughts;
}
};
babyObject.prototype.hideThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha - 50;
if (_local2._alpha <= 0) {
_local2._alpha = 0;
if ((--this.currentBubble) < 0) {
this.bubbles._visible = true;
this.bubbleDisplay = false;
if ((this.lastRequest == 1) && (this.dummyFlag != true)) {
this.pukeCnt = 0;
this.pukeFlag = false;
this.plotPoints(this.bottlePoints);
this.currentMethod = this.waitingToPuke;
} else {
if (this.pukeFlag == true) {
this.plotPoints(this.wipePoints);
this.pukeFlag = false;
this.setMood();
this.resetAnimation();
} else if (this.laughingFlag == true) {
this.plotPoints(this.teddyPoints);
this.laughingFlag = false;
} else {
if (this.dummyFlag == true) {
this.dummyCnt = 0;
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
this.currentMethod = this.suckingDummy;
return(undefined);
}
if (this.burpFlag == true) {
this.plotPoints(this.burpPoints);
this.burpFlag = false;
this.burpCnt = 0;
this.currentMethod = this.waitingForBurpToEnd;
return(undefined);
}
if (this.rocking == true) {
this.rocking = false;
this.plotPoints(this.rockPoints);
return(undefined);
}
if (this.needsANappy == true) {
this.needsANappy = false;
this.plotPoints(2000);
}
}
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
}
};
babyObject.prototype.plotPoints = function (pointsToAdd) {
score = score + pointsToAdd;
infoBar.score.text = score;
if (pointsToAdd == 500) {
this.pointsMC.gotoAndStop(1);
} else if (pointsToAdd == 1000) {
this.pointsMC.gotoAndStop(2);
} else {
this.pointsMC.gotoAndStop(3);
}
this.pointsMC._visible = true;
this.pointsMC.anim.gotoAndPlay(1);
playSound("tt_points");
this.particlesInit(4);
};
babyObject.prototype.particlesInit = function (numberOfParticles) {
var _local2 = null;
var _local4 = 0;
var _local3 = fxPlayField.getNextHighestDepth();
while (_local4++ , _local4 != (numberOfParticles + 1)) {
_local2 = fxPlayField.attachMovie("flowerMC", "p" + _local3, _local3++);
_local2.xposition = (_local2._x = this.pointsMC._x);
_local2.yposition = (_local2._y = this.pointsMC._y);
_local2.xvel = (Math.random() * 10) - 5;
_local2.yvel = (Math.random() * 10) - 5;
_local2.gravity = 0.5;
_local2._xscale = (_local2._yscale = int(Math.random() * 100) + 50);
_local2.onEnterFrame = function () {
this.yposition = this.yposition + this.yvel;
this.yvel = this.yvel + this.gravity;
this.xposition = this.xposition + this.xvel;
this._y = this.yposition;
this._x = this.xposition;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Instance of Symbol 458 MovieClip "binArrow" in Frame 256
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC1" in Frame 256
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC2" in Frame 256
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 466 MovieClip "pointsMC3" in Frame 256
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 341 MovieClip "bottle" in Frame 256
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 443 MovieClip "rock" in Frame 256
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Frame 256
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Frame 256
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Frame 256
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Frame 256
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 481 MovieClip in Frame 256
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 489 MovieClip "dad" in Frame 256
onClipEvent (load) {
this.gotoAndStop(1);
_visible = false;
}
Instance of Symbol 491 MovieClip "mum" in Frame 256
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow1" in Frame 256
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow2" in Frame 256
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 458 MovieClip "helpArrow3" in Frame 256
onClipEvent (load) {
_visible = false;
this.gotoAndStop(1);
}
Instance of Symbol 493 MovieClip "dummy" in Frame 256
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
Instance of Symbol 494 MovieClip "dummyScore" in Frame 256
onClipEvent (load) {
this.gotoAndStop(1);
}
Instance of Symbol 496 MovieClip "speechBubble" in Frame 256
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 498 MovieClip "wipeCursor" in Frame 256
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (this.hitTest(this.babyMC1.hitAreaPuke)) {
this.babyMC1.anim.nextFrame();
}
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 444 MovieClip "nappyCursor" in Frame 256
onClipEvent (load) {
_visible = false;
}
on (release) {
_visible = false;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 597 MovieClip "coverAll" in Frame 256
onClipEvent (load) {
this.useHandCursor = false;
}
Frame 257
var mc = null;
var mcd = 0;
for (mcd in thisScope) {
if (typeof(thisScope[mcd]) == "") {
thisScope[mcd].gotoAndStop(46);
}
}
init();
stop();
Frame 275
this.cngtxt2();
this.comtxt2();
this.nxttxt2();
clearInterval(Timer);
lives == 0;
gameOver();
totalTime.text = seconds;
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clapins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clapins = new Sound(this._parent.BS_clapins);
} else {
this.createEmptyMovieClip("_clapins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clapins = new Sound(this.BS_clapins);
}
_global.Behaviors.Sound.clapins.attachSound("clapsnd");
_global.Behaviors.Sound.clapins.start(0, 1);
} else {
_global.Behaviors.Sound.clapins.stop("clapsnd");
}
Frame 283
stop();
function playGreatSFX() {
var _local1 = int(Math.random() * 5);
if (_local1 <= 3) {
playSound("tt_giggle");
} else if (_local1 == 4) {
playSound("tt_content");
} else {
playSound("tt_gurgle2");
}
}
function playHappySFX() {
var _local1 = int(Math.random() * 6);
if (_local1 <= 1) {
playSound("tt_softPant");
} else if (_local1 == 2) {
playSound("tt_gurgle1");
} else if (_local1 == 3) {
playSound("tt_gurgle2");
} else if (_local1 == 4) {
playSound("tt_gurgle3");
} else if (_local1 == 5) {
playSound("tt_gurgle4");
} else {
playSound("tt_content");
}
}
function playGrumpySFX() {
var _local1 = int(Math.random() * 4);
if (_local1 <= 1) {
playSound("tt_wantingSomethingGrumpy");
} else if (_local1 == 2) {
playSound("tt_grumpy");
} else if (_local1 == 3) {
playSound("tt_cry1");
} else {
playSound("tt_cry2");
}
}
function playPissedSFX() {
var _local1 = int(Math.random() * 3);
if (_local1 <= 1) {
playSound("tt_scream");
} else if (_local1 == 2) {
playSound("tt_scream2");
} else {
playSound("tt_scream3");
}
}
function init() {
gameBroadcastObject.broadcastMessage("gameLoaded");
eventHandlerInit();
baby1 = new babyObject();
baby1.init(1);
baby2 = new babyObject();
baby2.init(2);
baby3 = new babyObject();
baby3.init(3);
var _local2 = {};
_local2.bestScore = 0;
ids = new com.preloaded.IDStore("levelup", "ttriplets", _local2);
bestScore = this.ids.props.bestScore;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
attractMode();
}
};
}
function attractMode() {
attract._visible = true;
coverAll._visible = false;
attract.gotoAndPlay(2);
}
function attractModeKill() {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
attract.gotoAndPlay(1);
attract._visible = false;
continueGame();
this._alpha = 100;
this.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this._visible = false;
gameIntroStart();
}
};
}
};
}
function startGame() {
attractModeKill();
level = 1;
score = (infoBar.score.text = 0);
dummyScore.gotoAndStop(1);
dummys = 3;
lives = 3;
infoBar._y = -infoBar._height;
if (parent != mum) {
parent = mum;
dad._visible = false;
dad.gotoAndStop(1);
parentSFX = "tt_mumSnore";
parentSFX2 = "tt_mumTalking";
} else {
parent = dad;
mum._visible = false;
mum.gotoAndStop(1);
parentSFX = "tt_dadSnore";
parentSFX2 = "tt_dadTalking";
}
parent._visible = true;
}
function continueGame() {
infoBar.time.text = (tick = (seconds = (babiesVolume = 0)));
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
parent.gotoAndPlay("speaking");
}
function gameIntroStart() {
this.onEnterFrame = function () {
infoBar._y--;
if (infoBar._y <= (-infoBar._height)) {
delete this.onEnterFrame;
plotSpeech();
}
};
}
function plotSpeech() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 5;
speechBubble._visible = true;
var _local2 = int(Math.random() * speech.length);
var currentSpeech = speech[_local2];
var textOffset = 0;
var genCnt = 0;
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
}
};
}
};
}
};
}
function prepareToGo() {
parent.gotoAndPlay("sleeping");
playSound(parentSFX, 999999);
baby1.startBaby();
baby2.startBaby();
baby3.startBaby();
babiesVolume = 0;
monitor.gotoAndStop(1);
this.onEnterFrame = function () {
infoBar._y = infoBar._y + 4;
if (infoBar._y >= 8) {
infoBar._y = 8;
playerInit();
this.onEnterFrame = master;
}
};
}
function houseKeeping() {
var _local2 = null;
var _local4 = null;
var _local3 = 0;
while (_local3++ , _local3 != 4) {
_local2 = this["thought" + _local3];
_local2._visible = false;
_local2._alpha = 0;
_local2 = this["bubbles" + _local3];
_local2._visible = false;
_local4 = _local2["bubbles" + _local3];
_local2.bubble1._alpha = (_local2.bubble2._alpha = (_local2.bubble3._alpha = 0));
this["helpArrow" + _local3]._visible = false;
}
bin.gotoAndStop(1);
binArrow._visible = false;
playerKill();
stopAnims(babyMC1);
stopAnims(babyMC2);
stopAnims(babyMC3);
killSounds();
}
function stopAnims(mc) {
for (var _local3 in mc) {
if (typeof(mc[_local3]) == "movieclip") {
mc[_local3].gotoAndStop(mc[_local3]._currentframe);
for (var _local2 in mc[_local3]) {
if (typeof(mc[_local3][_local2]) == "movieclip") {
mc[_local3][_local2].gotoAndStop(mc[_local3][_local2]._currentframe);
}
}
}
}
}
function lifeLost() {
houseKeeping();
baby1.reset();
baby2.reset();
baby3.reset();
if (lives == 1) {
parent.gotoAndPlay("speaking");
} else {
parent.gotoAndPlay("wakingUp");
}
stopSound(parentSFX);
plotSpeechlifeLost();
}
function plotSpeechlifeLost() {
speechBubble._alpha = 0;
speechBubble.speech.text = "";
speechBubble.speech.text._y = 15;
speechBubble._visible = true;
lives--;
if (lives != 0) {
coverAll._alpha = 0;
coverAll._visible = true;
coverAll.onPress = function () {
coverAll._visible = false;
delete coverAll.onPress;
stopSound(parentSFX2);
thisScope.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
prepareToGo();
}
};
};
}
var currentSpeech = speechLifeLost[lives];
var textOffset = 0;
var genCnt = 0;
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha + 20;
if (speechBubble._alpha >= 100) {
speechBubble._alpha = 100;
playSound(parentSFX2, 2);
this.onEnterFrame = function () {
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
speechBubble.speech.text = speechBubble.speech.text + currentSpeech.charAt(textOffset++);
if (textOffset >= currentSpeech.length) {
stopSound(parentSFX2);
this.onEnterFrame = function () {
if ((++genCnt) == (frameRate * 3)) {
this.onEnterFrame = function () {
speechBubble._alpha = speechBubble._alpha - 20;
if (speechBubble._alpha <= 0) {
speechBubble._alpha = 0;
speechBubble._visible = false;
delete this.onEnterFrame;
if (lives == 0) {
gameOver();
} else {
prepareToGo();
}
}
};
}
};
}
};
}
};
}
function gameOver() {
attract.gotoAndPlay("gameOver");
}
function playerInit() {
bottleBaby = (bottleDroppedCnt = 0);
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
currentSelection = null;
Mouse.addListener(playerMouseListener);
}
function playerKill() {
playerMouseListener.onMouseDown = (playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null));
Mouse.removeListener(playerMouseListener);
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
rock._x = rock.orignalX;
rock._y = rock.orignalY;
burp._x = burp.orignalX;
burp._y = burp.orignalY;
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
wipeCursor._visible = (nappyCursor._visible = false);
stopDrag();
}
function playerDecCounters() {
bottleDroppedCnt--;
}
function waitingToPickUp() {
var _local3 = thisScope._xmouse;
var _local2 = thisScope._ymouse;
if (bottleBaby == 0) {
if (bottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
currentSelection = "bottle";
playSound("tt_buttonPressed");
if (bottleArrowCnt < 3) {
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else if (baby3.currentRequest == 1) {
var _local1 = 3;
}
if (_local1 != undefined) {
bottleArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(2);
thisScope["helpArrow" + _local1]._visible = true;
}
}
startDrag ("bottle");
}
} else if (bottleDroppedCnt <= 0) {
if (thisScope["babyMC" + bottleBaby].hitAreaBottle.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppedBottle;
bottle._visible = true;
bottle._x = _local3 - (bottle._width / 2);
bottle._y = _local2 - (bottle._height / 2);
thisScope["baby" + bottleBaby].removedBottle();
currentSelection = "bottle";
playSound("tt_pop");
startDrag ("bottle");
}
}
if (wipe.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingWipe;
playerMouseListener.onMouseMove = checkingForUsingWipe;
oldwipeCursorX = (wipeCursor._x = _local3 - (wipeCursor._width / 2));
oldwipeCursorY = (wipeCursor._y = _local2 - (wipeCursor._height / 2));
wipeCursor._visible = true;
currentSelection = "wipe";
if (wipeArrowCnt < 3) {
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else if (baby3.currentRequest == 6) {
var _local1 = 3;
}
if (_local1 != undefined) {
wipeArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(4);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
playSound("tt_pickingUpAWipe");
startDrag ("wipeCursor");
}
if (teddy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingTed;
playerMouseListener.onMouseMove = checkingForUsingTed;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
currentSelection = "teddy";
playSound("tt_teddy", 50);
playSound("tt_buttonPressed");
if (teddyArrowCnt < 3) {
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 2) {
var _local1 = 2;
} else if (baby3.currentRequest == 2) {
var _local1 = 3;
}
if (_local1 != undefined) {
teddyArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(7);
thisScope["helpArrow" + _local1]._visible = true;
}
}
teddy.gotoAndPlay("generalAnimation");
startDrag ("teddy");
}
if (dummys != 0) {
if (dummy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingDummy;
currentSelection = "dummy";
playSound("tt_buttonPressed");
startDrag ("dummy");
}
}
if (burp.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingBurp;
playerMouseListener.onMouseMove = checkingForUsingBurp;
oldBurpCursorX = burp._x;
oldBurpCursorY = burp._y;
currentSelection = "burp";
if (burpArrowCnt < 3) {
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else if (baby3.currentRequest == 3) {
var _local1 = 3;
}
if (_local1 != undefined) {
burpArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(6);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("burp");
}
if (rock.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingRock;
playerMouseListener.onMouseMove = checkingForUsingRock;
oldRockCursorX = rock._x;
currentSelection = "rock";
if (rockArrowCnt < 3) {
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else if (baby3.currentRequest == 4) {
var _local1 = 3;
}
if (_local1 != undefined) {
rockArrowCnt++;
thisScope["helpArrow" + _local1].gotoAndStop(5);
thisScope["helpArrow" + _local1]._visible = true;
}
}
playSound("tt_buttonPressed");
startDrag ("rock");
}
if (baby1.pantsFull == true) {
if (babyMC1.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby1.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby1;
nappyCursor._visible = true;
baby1.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby2.pantsFull == true) {
if (babyMC2.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby2.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby2;
nappyCursor._visible = true;
baby2.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (baby3.pantsFull == true) {
if (babyMC3.hitAreaNappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForDroppingNappy;
bin.gotoAndStop(2);
playSound("tt_binOpening");
if ((++binArrowCnt) < 3) {
binArrow._visible = true;
}
baby3.helpArrow._visible = false;
nappyCursor._x = _local3 - 48;
nappyCursor._y = _local2 - 50;
nappyCursor.babyObj = baby3;
nappyCursor._visible = true;
baby3.nappyWhippedOff();
currentSelection = "nappy";
playSound("tt_nappyOff");
startDrag ("nappyCursor");
}
}
if (nappy.hitTest(_local3, _local2, true)) {
playerMouseListener.onMouseDown = null;
playerMouseListener.onMouseUp = checkingForNappyIcon;
nappy.flowers.gotoAndStop(1);
nappy.flowers._visible = false;
currentSelection = "nappy2";
playSound("tt_buttonPressed");
startDrag ("nappy");
}
}
function checkingForNappyIcon() {
if (currentSelection != "nappy2") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (baby1.needsANappy == true) {
if (baby1.needsAWipe == false) {
if (nappy.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.nappyPutOn;
}
}
}
if (baby2.needsANappy == true) {
if (baby2.needsAWipe == false) {
if (nappy.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.nappyPutOn;
}
}
}
if (baby3.needsANappy == true) {
if (baby3.needsAWipe == false) {
if (nappy.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.nappyPutOn;
}
}
}
nappy.flowers.gotoAndPlay(1);
nappy.flowers._visible = true;
nappy._x = nappy.orignalX;
nappy._y = nappy.orignalY;
}
function checkingForDroppingNappy() {
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
nappyCursor._visible = false;
if (nappyCursor.hitTest(bin.hitAreaMC)) {
nappyCursor._visible = false;
binArrow._visible = false;
playSound("tt_binClose");
nappyCursor.babyObj.needAWipe();
} else {
nappyCursor.babyObj.nappyNotInBin();
nappyCursor._visible = false;
}
bin.gotoAndStop(1);
}
function checkingForUsingRock() {
if (baby1.currentRequest == 4) {
if (baby1.bubbleDisplay == true) {
if (rock.hitTest(babyMC1.hitAreaRock)) {
baby1.currentMethod = baby1.checkRock;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 4) {
if (baby2.bubbleDisplay == true) {
if (rock.hitTest(babyMC2.hitAreaRock)) {
baby2.currentMethod = baby2.checkRock;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 4) {
if (baby3.bubbleDisplay == true) {
if (rock.hitTest(babyMC3.hitAreaRock)) {
baby3.currentMethod = baby3.checkRock;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingRock() {
if (currentSelection != "rock") {
return(undefined);
}
currentSelection = null;
stopDrag();
if (baby1.currentRequest == 4) {
var _local1 = 1;
} else if (baby2.currentRequest == 4) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
rock._x = rock.orignalX;
rock._y = rock.orignalY;
}
function checkingForUsingBurp() {
if (baby1.currentRequest == 3) {
if (baby1.bubbleDisplay == true) {
if (burp.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkBurp;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 3) {
if (baby2.bubbleDisplay == true) {
if (burp.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkBurp;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 3) {
if (baby3.bubbleDisplay == true) {
if (burp.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkBurp;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingBurp() {
if (currentSelection != "burp") {
return(undefined);
}
currentSelection = null;
if (baby1.currentRequest == 3) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
burp._x = burp.orignalX;
burp._y = burp.orignalY;
}
function checkingForDroppingDummy() {
if (currentSelection != "dummy") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (dummy.hitTest(babyMC1.hitAreaHead)) {
baby1.givenDummy();
} else if (dummy.hitTest(babyMC2.hitAreaHead)) {
baby2.givenDummy();
} else if (dummy.hitTest(babyMC3.hitAreaHead)) {
baby3.givenDummy();
}
dummy._x = dummy.orignalX;
dummy._y = dummy.orignalY;
}
function checkingForUsingTed() {
if (baby1.currentRequest == 2) {
if (baby1.bubbleDisplay == true) {
if (teddy.hitTest(babyMC1.hitAreaTeddy)) {
baby1.currentMethod = baby1.checkTeddy;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if (baby2.currentRequest == 2) {
if (baby2.bubbleDisplay == true) {
if (teddy.hitTest(babyMC2.hitAreaTeddy)) {
baby2.currentMethod = baby2.checkTeddy;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if (baby3.currentRequest == 2) {
if (baby3.bubbleDisplay == true) {
if (teddy.hitTest(babyMC3.hitAreaTeddy)) {
baby3.currentMethod = baby3.checkTeddy;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingTed() {
if (currentSelection != "teddy") {
return(undefined);
}
currentSelection = null;
stopDrag();
stopSound("tt_teddy");
if (baby1.currentRequest == 2) {
var _local1 = 1;
} else if (baby2.currentRequest == 3) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
teddy.gotoAndStop(1);
teddy._x = teddy.orignalX;
teddy._y = teddy.orignalY;
}
function checkingForUsingWipe() {
if ((baby1.pukeFlag == true) || (baby1.needsANappy == true)) {
if (baby1.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC1.hitAreaPuke)) {
baby1.currentMethod = baby1.checkWipe;
return(undefined);
}
baby1.currentMethod = baby1.decreaseHappiness;
}
}
if ((baby2.pukeFlag == true) || (baby2.needsANappy == true)) {
if (baby2.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC2.hitAreaPuke)) {
baby2.currentMethod = baby2.checkWipe;
return(undefined);
}
baby2.currentMethod = baby2.decreaseHappiness;
}
}
if ((baby3.pukeFlag == true) || (baby3.needsANappy == true)) {
if (baby3.bubbleDisplay == true) {
if (wipeCursor.hitTest(babyMC3.hitAreaPuke)) {
baby3.currentMethod = baby3.checkWipe;
return(undefined);
}
baby3.currentMethod = baby3.decreaseHappiness;
}
}
}
function checkingForDroppingWipe() {
if (currentSelection != "wipe") {
return(undefined);
}
currentSelection = null;
wipeCursor._visible = false;
if (baby1.currentRequest == 6) {
var _local1 = 1;
} else if (baby2.currentRequest == 6) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = (playerMouseListener.onMouseMove = null);
}
function checkingForDroppedBottle() {
if (currentSelection != "bottle") {
return(undefined);
}
currentSelection = null;
stopDrag();
playerMouseListener.onMouseDown = waitingToPickUp;
playerMouseListener.onMouseUp = null;
if (bottle.hitTest(babyMC1.hitAreaHead)) {
if (baby1.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC2.hitAreaHead)) {
if (baby2.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
} else if (bottle.hitTest(babyMC3.hitAreaHead)) {
if (baby3.givenBottle() == true) {
bottle._visible = false;
return(undefined);
}
}
if (baby1.currentRequest == 1) {
var _local1 = 1;
} else if (baby2.currentRequest == 1) {
var _local1 = 2;
} else {
var _local1 = 3;
}
thisScope["helpArrow" + _local1]._visible = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
}
function master() {
baby1.currentMethod();
baby1.animationMethod();
baby2.currentMethod();
baby2.animationMethod();
baby3.currentMethod();
baby3.animationMethod();
playerDecCounters();
handleTimer();
if (Key.isDown(27)) {
killSounds();
coverAll._alpha = 0;
coverAll._visible = true;
this.onEnterFrame = function () {
coverAll._alpha = coverAll._alpha + 20;
if (coverAll._alpha >= 100) {
coverAll._alpha = 100;
delete this.onEnterFrame;
houseKeeping();
attractMode();
}
};
}
}
function handleTimer() {
if ((++tick) == frameRate) {
tick = 0;
seconds++;
infoBar.time.text = seconds;
if ((seconds % 5) == 0) {
score = score + 500;
infoBar.score.text = score;
}
if (score >= lvlscore2) {
gotoAndPlay ("lvl3");
}
} else if ((tick % 5) == 0) {
handleMonitor();
}
}
function handleMonitor() {
var _local2 = (babiesVolume / 70) * 100;
_local2 = _local2 / 10;
_local2 = int(_local2);
monitor.gotoAndStop(_local2);
if (_local2 >= 8) {
delete this.onEnterFrame;
lifeLost();
}
}
var ver = "ver$0.1 - 2006_03_20";
if (frameRate == undefined) {
_global.frameRate = 31;
}
_global.thisScope = this;
var gameBroadcastObject = new Object();
if (thisScope == _root) {
var standalone = true;
var colorTest = 1;
var playerName = "Terrible Triplets";
} else {
var standalone = false;
var playerName = _root.profile.getPlayerName();
if (playerName == undefined) {
playerName = "Terrible Triplets";
}
var colorTest = _root.profile.getPlayerSkinOffset();
if (colorTest == undefined) {
colorTest = 1;
}
AsBroadcaster.initialize(gameBroadcastObject);
gameBroadcastObject.addListener(_parent._parent.listenerObject);
}
var score = 0;
var level = 1;
var babiesVolume = 0;
var lives = 3;
var bestScore = 0;
var binArrowCnt = 0;
var bottleArrowCnt = 0;
var soiledNappyCnt = 0;
var wipeArrowCnt = 0;
var rockArrowCnt = 0;
var burpArrowCnt = 0;
var teddyArrowCnt = 0;
var baby1 = null;
var baby2 = null;
var baby3 = null;
var bottleBaby = 0;
var bottleDroppedCnt = 0;
var oldwipeCursorX = 0;
var oldwipeCursorY = 0;
var oldTeddyCursorX = 0;
var oldTeddyCursorY = 0;
var dummys = 3;
var oldBurpCursorX = 0;
var oldBurpCursorY = 0;
var oldRockCursorX = 0;
var currentSelection = null;
var tick = 0;
var seconds = 0;
var listenerObject = new Object();
var playerMouseListener = new Object();
var masterVolume = 100;
var parent = null;
var parentSFX = null;
var parentSFX2 = null;
attract.newSound("tt_titleMod");
this.newSound("tt_points");
this.newSound("tt_buttonPressed");
this.newSound("tt_cradleRocked");
this.newSound("tt_binOpening");
this.newSound("tt_binClose");
this.newSound("tt_nappyOn");
this.newSound("tt_nappyOff");
this.newSound("tt_teddy");
this.newSound("tt_puke");
this.newSound("tt_burp");
this.newSound("tt_fart");
this.newSound("tt_mumSnore");
this.newSound("tt_mumTalking");
this.newSound("tt_dadSnore");
this.newSound("tt_dadTalking");
this.newSound("tt_pop");
this.newSound("tt_pickingUpAWipe");
this.newSound("tt_suckingDummy");
this.newSound("tt_drinkingBottle");
this.newSound("tt_lipSmacking");
this.newSound("tt_giggle");
this.newSound("tt_gurgle1");
this.newSound("tt_gurgle2");
this.newSound("tt_gurgle3");
this.newSound("tt_gurgle4");
this.newSound("tt_content");
this.newSound("tt_softPant");
this.newSound("tt_wantingSomethingGrumpy");
this.newSound("tt_grumpy");
this.newSound("tt_cry1");
this.newSound("tt_cry2");
this.newSound("tt_scream");
this.newSound("tt_scream2");
this.newSound("tt_scream3");
if (standalone == true) {
var path = "com.preloaded";
var a = path.split(".");
var o = _global;
var i = 0;
while (i < a.length) {
var name = a[i];
if (o[name] == undefined) {
o[name] = new Object();
}
o = o[name];
i++;
}
var ob = com.preloaded;
ob.IDStore = function (site, solname, props) {
this.site = site;
this.solname = solname;
this.props = props;
EventBroadcaster.initialize(this);
this.addListener(_root.dBugger);
this.addListener(_root.base);
this.cookie = SharedObject.getLocal((this.site + "/") + this.solname);
this.cookie.data.lastAccess = new Date();
this.cookie.flush();
if (this.cookie.data.lastModified) {
dBug("COOKIE: existed already");
this.loadLocal();
} else {
dBug("COOKIE: didn't exist already");
this.saveLocal();
dBug("this.saveLocal = " + this.saveLocal);
dBug("*******SAVED?");
}
};
ob.IDStore.prototype.loadLocal = function () {
for (var _local2 in this.props) {
this.props[_local2] = this.cookie.data[_local2];
}
};
ob.IDStore.prototype.saveLocal = function () {
dBug(("this.saveLocal(" + this.props) + ")");
for (var _local2 in this.props) {
this.cookie.data[_local2] = this.props[_local2];
dBug(((("saving props." + _local2) + " (") + this.props[_local2]) + ") to cookie");
}
this.cookie.data.lastModified = new Date();
this.cookie.flush();
};
}
var speech = new Array("Try to Care them");
var speechLifeLost = new Array("Try Next Time", "");
babyObject = function () {
this.num = 0;
this.currentMethod = null;
this.animationMethod = null;
this.thoughtBubble = null;
this.bubbles = null;
this.currentBubble = 1;
this.helpArrow = null;
this.bubbleDisplay = false;
this.sprite = null;
this.cot = null;
this.cotTop = null;
this.shadowMC = null;
this.pointsMC = null;
this.wipeCnt = 0;
this.lastRequest = null;
this.currentRequest = null;
this.actuallyHolding = false;
this.subdudeCnt = 0;
this.happySpeed = 30;
this.happyIncCnt = 0;
this.contentment = 0;
this.mood = "happy";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.bottlePoints = 1000;
this.teddyPoints = 2000;
this.rockPoints = 2000;
this.burpPoints = 2000;
this.wipePoints = 1000;
this.nappyPoints = 1000;
};
babyObject.prototype.init = function (num) {
this.num = num;
this.thoughtBubble = thisScope["thought" + num];
this.bubbles = thisScope["bubbles" + num];
this.sprite = thisScope["babyMC" + num];
this.helpArrow = thisScope["helpArrow" + num];
this.cot = thisScope["cot" + num];
this.cotTop = thisScope["cotTop" + num];
this.shadowMC = thisScope["shadowMC" + num];
this.pointsMC = thisScope["pointsMC" + num];
};
babyObject.prototype.reset = function () {
this.lastRequest = null;
this.currentRequest = null;
this.animationMethod = null;
this.actuallyHolding = false;
this.thoughtBubble.happyMeter._x = 44;
this.bubbleDisplay = false;
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.thoughtBubble.happyMeter.gotoAndStop(3);
this.mood = "great";
this.laughingFlag = false;
this.dummyFlag = false;
this.pukeCnt = 0;
this.pukeFlag = false;
this.burpFlag = false;
this.burpCnt = 0;
this.cotAnimatingFlag = false;
this.cotDirection = null;
this.rocking = false;
this.pantsFull = false;
this.needsANappy = false;
this.needsAWipe = false;
this.firstRun = true;
this.wipeCnt = 0;
this.sprite.wipeCnt = this.wipeCnt;
var _local2 = int(Math.random() * 3) + 1;
var _local3 = babyMC1._currentframe;
var _local4 = babyMC2._currentframe;
var _local5 = babyMC3._currentframe;
if (this.num == 2) {
if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
}
}
} else if (this.num == 3) {
if (_local4 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
}
} else if (_local3 == _local2) {
_local2++;
if (_local2 == 5) {
_local2 = 1;
if (_local4 == _local2) {
_local2++;
}
} else if (_local4 == _local2) {
_local2++;
}
}
}
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
};
babyObject.prototype.startBaby = function () {
this.getWaitingFirstTime();
this.currentMethod = this.waitingToAnnoy;
};
babyObject.prototype.getWaitingFirstTime = function () {
this.subdudeCnt = int(Math.random() * 2) + (this.num * 2);
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.getWaitingTime = function () {
this.bubbles.bubble1._alpha = (this.bubbles.bubble2._alpha = (this.bubbles.bubble3._alpha = 0));
var _local2 = 10 - int(seconds / 60);
if (_local2 < 2) {
_local2 = 2;
}
this.subdudeCnt = int(Math.random() * _local2) + 2;
this.subdudeCnt = this.subdudeCnt * frameRate;
this.happySpeed = 30 - int(seconds / 10);
this.happyIncCnt = 0;
if (this.happySpeed <= 10) {
this.happySpeed = 10;
}
};
babyObject.prototype.waitingToAnnoy = function () {
if ((--this.subdudeCnt) == 0) {
this.getNewRequest();
this.currentBubble = 1;
this.bubbles._visible = true;
this.currentMethod = this.displayThoughts;
} else if ((this.subdudeCnt % this.happySpeed) == 0) {
if (babiesVolume > 0) {
babiesVolume = babiesVolume - 0.5;
} else {
babiesVolume = 0;
}
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width == 1)) {
this.contentment = 0;
return(undefined);
}
if (seconds > 120) {
var _local2 = 2;
} else {
var _local2 = 1;
}
this.contentment = this.contentment - _local2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._width <= 1) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
}
}
var _local3 = this.mood;
this.setMood();
if (_local3 != this.mood) {
this.resetAnimation();
}
}
};
babyObject.prototype.getNewRequest = function () {
var _local2 = int(Math.random() * 4) + 1;
if (_local2 == this.lastRequest) {
_local2++;
if (_local2 >= 6) {
_local2 = 1;
}
}
this.lastRequest = (this.currentRequest = _local2);
if (_local2 == 5) {
this.pantsFull = true;
playSound("tt_fart");
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
}
};
babyObject.prototype.increaseHappiness = function (amount) {
if ((++this.happyIncCnt) >= (this.happySpeed / 4)) {
this.happyIncCnt = 0;
if (amount != undefined) {
var _local2 = amount;
} else {
var _local2 = 1;
}
this.contentment = this.contentment + _local2;
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - _local2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x + _local2;
if (this.thoughtBubble.happyMeter._x > 34) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
if (this.thoughtBubble.happyMeter._x > 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
}
}
} else {
this.thoughtBubble.happyMeter._x = 44;
if (this.thoughtBubble.happyMeter._width >= 10) {
this.thoughtBubble.happyMeter.gotoAndStop(3);
}
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + _local2;
if ((--babiesVolume) < 0) {
babiesVolume = 0;
}
if (this.currentRequest == 3) {
if (this.sprite._currentframe != 80) {
this.sprite.gotoAndPlay(80);
} else if (this.sprite.anim.faceAnim.animRunning == false) {
if (this.contentment >= 30) {
this.sprite.anim.faceAnim.gotoAndPlay("fifthPress");
} else if (this.contentment >= 25) {
this.sprite.anim.faceAnim.gotoAndPlay("forthPress");
} else if (this.contentment >= 15) {
this.sprite.anim.faceAnim.gotoAndPlay("thirdPress");
} else if (this.contentment >= 10) {
this.sprite.anim.faceAnim.gotoAndPlay("secondPress");
} else {
this.sprite.anim.faceAnim.gotoAndPlay("firstPress");
}
}
}
}
if (this.thoughtBubble.happyMeter._width >= 32) {
this.thoughtBubble.happyMeter._width = (this.contentment = 32);
this.mood = "great";
if (this.pukeFlag == true) {
this.sprite.puke._alpha = 0;
checkingForDroppingWipe();
} else if (this.laughingFlag == true) {
checkingForDroppingTed();
} else if (this.currentRequest == 3) {
this.sprite.anim.faceAnim.gotoAndPlay("burp");
playSound("tt_burp");
this.burpFlag = true;
checkingForDroppingBurp();
} else if (this.currentRequest == 4) {
checkingForDroppingRock();
} else if (this.needsANappy == true) {
this.sprite.wipeCnt = (this.wipeCnt = 32);
this.needsAWipe = false;
checkingForDroppingWipe();
this.currentRequest = 7;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.decreaseHappiness;
return(undefined);
}
this.currentRequest = 0;
this.currentMethod = this.hideThoughtBubble;
} else {
this.setMood();
}
}
};
babyObject.prototype.decreaseHappiness = function () {
if ((++this.happyIncCnt) >= this.happySpeed) {
this.happyIncCnt = 0;
if ((this.thoughtBubble.happyMeter._x == 44) && (this.thoughtBubble.happyMeter._width > 1)) {
if (seconds > 60) {
if (this.thoughtBubble.happyMeter._width <= 4) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 4;
this.contentment = this.contentment - 4;
}
} else if (this.thoughtBubble.happyMeter._width <= 2) {
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
} else {
this.contentment = this.contentment - 2;
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width - 2;
}
if (this.thoughtBubble.happyMeter._width < 10) {
this.thoughtBubble.happyMeter.gotoAndStop(1);
}
} else {
if (this.thoughtBubble.happyMeter._x <= 14) {
this.thoughtBubble.happyMeter._x = 14;
this.thoughtBubble.happyMeter._width = 28;
this.contentment = -30;
return(undefined);
}
if (seconds > 120) {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 4;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 4;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 4;
} else {
this.thoughtBubble.happyMeter._width = this.thoughtBubble.happyMeter._width + 2;
this.thoughtBubble.happyMeter._x = this.thoughtBubble.happyMeter._x - 2;
if (this.thoughtBubble.happyMeter._x <= 42) {
this.thoughtBubble.happyMeter.gotoAndStop(2);
}
this.contentment = this.contentment - 2;
}
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.pukeFlag == true) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("sickGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("sickHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("sickPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("sickGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.cotAnimatingFlag == true) {
this.increaseBabiesVolume();
return(undefined);
}
if ((this.needsAWipe == true) || (this.currentRequest == 7)) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.currentRequest == 5) {
if (this.contentment >= -2) {
if (this.contentment >= 25) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("shitGreat");
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("shitHappy");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("shitPissed");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("shitGrumpy");
}
this.increaseBabiesVolume();
return(undefined);
}
if (this.contentment >= -2) {
if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndPlay("needsSomething2");
}
} else if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndPlay("needsSomething4");
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndPlay("needsSomething3");
}
} else {
this.increaseBabiesVolume();
}
};
babyObject.prototype.increaseBabiesVolume = function () {
if ((this.happyIncCnt % 8) == 0) {
this.setMood();
if (this.contentment < -2) {
if (babiesVolume < 60) {
if (this.mood == "grumpy") {
babiesVolume++;
} else if (this.mood == "pissed") {
babiesVolume = babiesVolume + 2;
}
} else {
babiesVolume = 60;
}
}
}
};
babyObject.prototype.setMood = function () {
if (this.contentment > 25) {
this.mood = "great";
} else if (this.contentment >= -2) {
this.mood = "happy";
} else if (this.contentment <= -20) {
this.mood = "pissed";
} else {
this.mood = "grumpy";
}
};
babyObject.prototype.resetAnimation = function () {
if (this.contentment == 0) {
var _local2 = int(Math.random() * 3) + 1;
this.sprite.gotoAndPlay(_local2);
_local2 = int(Math.random() * this.sprite.anim._totalframes);
this.sprite.anim.gotoAndPlay(_local2);
return(undefined);
}
var _local2 = int(Math.random() * 3);
if (this.mood == "happy") {
this.sprite.gotoAndPlay(_local2 + 30);
} else if (this.mood == "grumpy") {
this.sprite.gotoAndPlay(_local2 + 46);
} else if (this.mood == "pissed") {
this.sprite.gotoAndPlay(_local2 + 62);
} else {
this.sprite.gotoAndPlay(_local2 + 12);
}
};
babyObject.prototype.waitingToPuke = function () {
if ((++this.pukeCnt) == (frameRate * 2)) {
stopSound("tt_drinkingBottle");
this.pukeCnt = 0;
this.pukeFlag = true;
if (bottleBaby != 0) {
bottleBaby = 0;
this.actuallyHolding = false;
bottle._x = bottle.orignalX;
bottle._y = bottle.orignalY;
bottle._visible = true;
}
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.contentment = 0;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.sprite.gotoAndPlay("babyBeingSick");
this.currentMethod = this.puking;
}
};
babyObject.prototype.puking = function () {
if (this.sprite.anim._currentframe == 90) {
this.lastRequest = (this.currentRequest = 6);
this.bubbles._visible = true;
if (this.mood == "great") {
this.sprite.gotoAndStop("sickGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("sickHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("sickGrumpy");
} else {
this.sprite.gotoAndStop("sickPissed");
}
this.currentMethod = this.displayThoughts;
} else if (this.sprite.anim._currentframe == 60) {
playSound("tt_puke");
}
};
babyObject.prototype.waitingForBurpToEnd = function () {
if ((++this.burpCnt) == (frameRate * 2)) {
this.burpCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.nappyWhippedOff = function () {
this.wipeCnt = (this.sprite.wipeCnt = 0);
this.nappyWhippedOff2();
};
babyObject.prototype.nappyWhippedOff2 = function () {
if (this.mood == "great") {
this.sprite.gotoAndStop("nakedGreat");
} else if (this.mood == "happy") {
this.sprite.gotoAndStop("nakedHappy");
} else if (this.mood == "grumpy") {
this.sprite.gotoAndStop("nakedGrumpy");
} else {
this.sprite.gotoAndStop("nakedPissed");
}
this.sprite.anim.cloud.gotoAndPlay(1);
};
babyObject.prototype.needAWipe = function () {
this.pantsFull = false;
this.needsAWipe = true;
this.needsANappy = true;
this.wipeCnt = 0;
this.lastRequest = (this.currentRequest = 6);
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
};
babyObject.prototype.nappyNotInBin = function () {
this.currentMethod = this.decreaseHappiness;
this.sprite.gotoAndPlay("babyPooing");
if ((++soiledNappyCnt) < 3) {
this.helpArrow._visible = true;
this.helpArrow.gotoAndStop(3);
}
binArrow._visible = false;
};
babyObject.prototype.nappyPutOn = function () {
if (this.thoughtBubble.happyMeter._x < 44) {
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
}
this.currentRequest = 0;
playSound("tt_nappyOn");
this.setMood();
this.resetAnimation();
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.checkWipe = function () {
var _local4 = Math.abs(oldwipeCursorX - wipeCursor._x);
var _local3 = Math.abs(oldwipeCursorY - wipeCursor._y);
var _local2 = _local4 + _local3;
oldwipeCursorX = wipeCursor._x;
oldwipeCursorY = wipeCursor._y;
if ((_local2 >= 10) && (_local2 <= 60)) {
this.helpArrow._visible = false;
if (this.pukeFlag == true) {
if (this.contentment > 0) {
this.sprite.puke._alpha = 100 - (this.contentment * 2);
} else {
this.sprite.puke._alpha = 100;
}
} else {
if (this.sprite.anim.cloud == undefined) {
this.nappyWhippedOff2();
}
if (this.contentment >= -2) {
this.wipeCnt = this.wipeCnt + 2;
if (this.wipeCnt > 32) {
this.wipeCnt = 32;
}
this.sprite.wipeCnt = this.wipeCnt;
if (this.contentment > 0) {
if (this.mood != "great") {
this.mood = "great";
this.sprite.gotoAndStop("nakedGreat");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else if (this.mood != "happy") {
this.mood = "happy";
this.sprite.gotoAndStop("nakedHappy");
this.sprite.puke._alpha = 100 - (this.contentment * 2);
}
} else {
this.wipeCnt = 0;
if (this.contentment <= -20) {
if (this.mood != "pissed") {
this.mood = "pissed";
this.sprite.gotoAndStop("nakedPissed");
this.sprite.anim.cloud.gotoAndPlay(1);
}
} else if (this.mood != "grumpy") {
this.mood = "grumpy";
this.sprite.gotoAndStop("nakedGrumpy");
this.sprite.anim.cloud.gotoAndPlay(1);
}
}
}
if (_local2 >= 25) {
this.increaseHappiness(4);
} else if (_local2 >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.givenDummy = function () {
if (this.bubbleDisplay == false) {
return(undefined);
}
if (this.actuallyHolding == true) {
return(undefined);
}
if (this.rocking == true) {
this.cotAnimatingFlag = false;
this.animationMethod = null;
}
this.laughingFlag = (this.pukeFlag = (this.burpFlag = (this.pantsFull = (this.needsANappy = (this.needsAWipe = false)))));
this.currentRequest = (this.dummyCnt = 0);
dummyScore.nextFrame();
if ((--dummys) <= 0) {
dummys = 0;
dummy._visible = false;
}
this.dummyFlag = true;
this.helpArrow._visible = false;
playSound("tt_suckingDummy", 50);
this.sprite.gotoAndPlay("babyWithDummy");
this.currentMethod = this.hideThoughtBubble;
};
babyObject.prototype.suckingDummy = function () {
if (this.sprite.anim._currentframe == this.sprite.anim._totalframes) {
if ((++this.dummyCnt) == 1) {
stopSound("tt_suckingDummy");
this.dummyFlag = false;
this.thoughtBubble.happyMeter._x == 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.dummyCnt = 0;
this.setMood();
this.resetAnimation();
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
};
babyObject.prototype.givenBottle = function () {
if (this.bubbleDisplay == false) {
return(false);
}
if (this.currentRequest == 1) {
this.helpArrow._visible = false;
playSound("tt_drinkingBottle", 50);
this.sprite.gotoAndPlay("babyWithBottle");
this.actuallyHolding = true;
bottleBaby = this.num;
bottleDroppedCnt = 10;
this.currentMethod = this.increaseHappiness;
return(true);
}
return(false);
};
babyObject.prototype.removedBottle = function () {
stopSound("tt_drinkingBottle");
this.actuallyHolding = false;
this.setMood();
this.resetAnimation();
bottleBaby = 0;
bottleDroppedCnt = 10;
if (this.currentRequest == 1) {
this.currentMethod = this.decreaseHappiness;
} else {
playSound("tt_lipSmacking");
this.pukeCnt = 0;
this.pukeFlag = false;
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
};
babyObject.prototype.checkRock = function () {
var _local2 = Math.abs(oldRockCursorX - rock._y);
var _local3 = oldRockCursorX;
oldRockCursorX = rock._y;
if ((_local2 >= 10) && (_local2 <= 30)) {
if (this.cotAnimatingFlag == false) {
this.cotAnimatingFlag = true;
if (this.sprite._currentframe != 200) {
this.sprite.gotoAndPlay(200);
this.animationMethod = this.handleCotAnimation;
this.helpArrow._visible = false;
this.rocking = true;
}
if (_local3 < rock._y) {
this.cotDirection = "Top";
this.cot.gotoAndPlay(31);
this.cotTop.gotoAndPlay(31);
this.shadowMC.gotoAndPlay(31);
this.sprite.anim.gotoAndPlay(31);
} else {
this.cotDirection = "Bottom";
this.cot.gotoAndPlay(2);
this.cotTop.gotoAndPlay(2);
this.shadowMC.gotoAndPlay(2);
this.sprite.anim.gotoAndPlay(2);
}
playSound("tt_cradleRocked");
}
this.increaseHappiness();
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.handleCotAnimation = function () {
if (this.cotDirection == "Bottom") {
if (this.cot._currentframe == 31) {
this.cotDirection = null;
this.cot.gotoAndStop(31);
this.cotTop.gotoAndStop(31);
this.shadowMC.gotoAndStop(31);
this.sprite.anim.gotoAndStop(31);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
} else if (this.cotDirection == "Top") {
if (this.cot._currentframe == 1) {
this.cotDirection = null;
this.cot.gotoAndStop(1);
this.cotTop.gotoAndStop(1);
this.shadowMC.gotoAndStop(1);
this.sprite.anim.gotoAndStop(1);
this.cotAnimatingFlag = false;
if (this.rocking == false) {
this.animationMethod = null;
this.setMood();
this.resetAnimation();
}
} else {
this.increaseHappiness();
if (this.sprite.anim._currentframe != this.cot._currentframe) {
this.sprite.anim.gotoAndPlay(this.cot._currentframe);
}
}
}
};
babyObject.prototype.checkBurp = function () {
var _local2 = Math.abs(oldBurpCursorX - burp._x);
oldBurpCursorX = burp._x;
if ((_local2 >= 10) && (_local2 <= 30)) {
this.helpArrow._visible = false;
if (total >= 25) {
this.increaseHappiness(4);
} else if (total >= 15) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.checkTeddy = function () {
var _local4 = Math.abs(oldTeddyCursorX - teddy._x);
var _local3 = Math.abs(oldTeddyCursorY - teddy._y);
var _local2 = _local4 + _local3;
oldTeddyCursorX = teddy._x;
oldTeddyCursorY = teddy._y;
if ((_local2 >= 10) && (_local2 <= 50)) {
this.helpArrow._visible = false;
if (this.contentment >= 10) {
if (this.laughingFlag == false) {
this.laughingFlag = true;
this.sprite.gotoAndPlay("babyLaughing");
}
}
if (_local2 >= 40) {
this.increaseHappiness(4);
} else if (_local2 >= 30) {
this.increaseHappiness(2);
} else {
this.increaseHappiness();
}
} else {
this.decreaseHappiness();
}
};
babyObject.prototype.displayThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha + 50;
if (_local2._alpha >= 100) {
_local2._alpha = 100;
if ((++this.currentBubble) == 4) {
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = true;
this.thoughtBubble.request.gotoAndStop(this.currentRequest);
this.currentMethod = this.displayThoughtBubble;
}
}
};
babyObject.prototype.displayThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha + 25;
if (this.thoughtBubble._alpha >= 100) {
this.thoughtBubble._alpha = 100;
this.bubbleDisplay = true;
this.currentMethod = this.decreaseHappiness;
}
};
babyObject.prototype.hideThoughtBubble = function () {
this.thoughtBubble._alpha = this.thoughtBubble._alpha - 25;
if (this.thoughtBubble._alpha <= 0) {
this.bubbleDisplay = false;
this.thoughtBubble._alpha = 0;
this.thoughtBubble._visible = false;
this.currentBubble = 3;
this.currentMethod = this.hideThoughts;
}
};
babyObject.prototype.hideThoughts = function () {
var _local2 = this.bubbles["bubble" + this.currentBubble];
_local2._alpha = _local2._alpha - 50;
if (_local2._alpha <= 0) {
_local2._alpha = 0;
if ((--this.currentBubble) < 0) {
this.bubbles._visible = true;
this.bubbleDisplay = false;
if ((this.lastRequest == 1) && (this.dummyFlag != true)) {
this.pukeCnt = 0;
this.pukeFlag = false;
this.plotPoints(this.bottlePoints);
this.currentMethod = this.waitingToPuke;
} else {
if (this.pukeFlag == true) {
this.plotPoints(this.wipePoints);
this.pukeFlag = false;
this.setMood();
this.resetAnimation();
} else if (this.laughingFlag == true) {
this.plotPoints(this.teddyPoints);
this.laughingFlag = false;
} else {
if (this.dummyFlag == true) {
this.dummyCnt = 0;
this.thoughtBubble.happyMeter._x = 44;
this.thoughtBubble.happyMeter._width = 1;
this.thoughtBubble.happyMeter.gotoAndStop(1);
this.contentment = 0;
this.currentMethod = this.suckingDummy;
return(undefined);
}
if (this.burpFlag == true) {
this.plotPoints(this.burpPoints);
this.burpFlag = false;
this.burpCnt = 0;
this.currentMethod = this.waitingForBurpToEnd;
return(undefined);
}
if (this.rocking == true) {
this.rocking = false;
this.plotPoints(this.rockPoints);
return(undefined);
}
if (this.needsANappy == true) {
this.needsANappy = false;
this.plotPoints(2000);
}
}
this.getWaitingTime();
this.currentMethod = this.waitingToAnnoy;
}
}
}
};
babyObject.prototype.plotPoints = function (pointsToAdd) {
score = score + pointsToAdd;
infoBar.score.text = score;
if (pointsToAdd == 500) {
this.pointsMC.gotoAndStop(1);
} else if (pointsToAdd == 1000) {
this.pointsMC.gotoAndStop(2);
} else {
this.pointsMC.gotoAndStop(3);
}
this.pointsMC._visible = true;
this.pointsMC.anim.gotoAndPlay(1);
playSound("tt_points");
this.particlesInit(4);
};
babyObject.prototype.particlesInit = function (numberOfParticles) {
var _local2 = null;
var _local4 = 0;
var _local3 = fxPlayField.getNextHighestDepth();
while (_local4++ , _local4 != (numberOfParticles + 1)) {
_local2 = fxPlayField.attachMovie("flowerMC", "p" + _local3, _local3++);
_local2.xposition = (_local2._x = this.pointsMC._x);
_local2.yposition = (_local2._y = this.pointsMC._y);
_local2.xvel = (Math.random() * 10) - 5;
_local2.yvel = (Math.random() * 10) - 5;
_local2.gravity = 0.5;
_local2._xscale = (_local2._yscale = int(Math.random() * 100) + 50);
_local2.onEnterFrame = function () {
this.yposition = this.yposition + this.yvel;
this.yvel = this.yvel + this.gravity;
this.xposition = this.xposition + this.xvel;
this._y = this.yposition;
this._x = this.xposition;
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Frame 284
stop();
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
pointer_mc1._x = _xmouse;
pointer_mc1._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
Frame 285
Mouse.hide();
var mouseListener = new Object();
mouseListener.onMouseMove = function () {
pointer_mc1._x = _xmouse;
pointer_mc1._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
Symbol 42 MovieClip Frame 85
gotoAndPlay (56);
Symbol 57 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-pre&utm_campaign=brandedgames", "_blank");
}
Symbol 64 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-splash&utm_campaign=brandedgames", "_blank");
}
Symbol 71 MovieClip Frame 20
this.removeMovieClip();
Symbol 72 MovieClip Frame 1
Frame_num = 1;
angle = 360;
plus_angle = 0;
scene_width = 400;
scene_height = 45;
bar_mc.i = 0;
bar_mc._visible = 0;
bar_mc.onEnterFrame = function () {
var _local2 = this;
if ((_local2.i % Frame_num) == 0) {
mc = _local2.duplicateMovieClip("bar_mc" + _local2.i, _local2.i);
mc._x = random(scene_width);
mc._y = random(scene_height);
mc._rotation = random(angle) + plus_angle;
}
_local2.i++;
};
Symbol 76 MovieClip Frame 30
stop();
Symbol 99 Button
on (release) {
gotoAndStop (211);
}
Symbol 141 Button
on (release) {
gotoAndPlay ("startgames");
}
on (release) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 147 Button
on (release) {
gotoAndStop (285);
}
Symbol 160 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-ig-playsplash&utm_campaign=brandedgames", "_blank");
}
Symbol 166 Button
on (release) {
gotoAndStop (2);
}
Symbol 169 Button
on (release) {
gotoAndStop (1);
}
Symbol 170 MovieClip Frame 1
stop();
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_bgsnd", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.bgsnd = new Sound(this._parent.BS_bgsnd);
} else {
this.createEmptyMovieClip("_bgsnd_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.bgsnd = new Sound(this.BS_bgsnd);
}
_global.Behaviors.Sound.bgsnd.attachSound("vensnd");
_global.Behaviors.Sound.bgsnd.start(0, 999);
Symbol 170 MovieClip Frame 2
stop();
stopAllSounds();
Symbol 260 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 7
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_showerins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.showerins = new Sound(this._parent.BS_showerins);
} else {
this.createEmptyMovieClip("_showerins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.showerins = new Sound(this.BS_showerins);
}
_global.Behaviors.Sound.showerins.attachSound("shower");
_global.Behaviors.Sound.showerins.start(0, 1);
} else {
_global.Behaviors.Sound.showerins.stop("shower");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.showerins.stop("shower");
}
Symbol 298 MovieClip Frame 65
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_mouthins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mouthins = new Sound(this._parent.BS_mouthins);
} else {
this.createEmptyMovieClip("_mouthins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mouthins = new Sound(this.BS_mouthins);
}
_global.Behaviors.Sound.mouthins.attachSound("mouthsnd");
_global.Behaviors.Sound.mouthins.start(0, 1);
} else {
_global.Behaviors.Sound.mouthins.stop("mouthsnd");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.mouthins.stop("mouthsnd");
}
Symbol 326 MovieClip Frame 14
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_waterins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.waterins = new Sound(this._parent.BS_waterins);
} else {
this.createEmptyMovieClip("_waterins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.waterins = new Sound(this.BS_waterins);
}
_global.Behaviors.Sound.waterins.attachSound("watersnd");
_global.Behaviors.Sound.waterins.start(0, 1);
} else {
_global.Behaviors.Sound.waterins.stop("watersnd");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.waterins.stop("watersnd");
}
Symbol 343 MovieClip Frame 1
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Instance of Symbol 283 MovieClip "hitAreaHead" in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 285 MovieClip "hitAreaRock" in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 283 MovieClip "hitAreaTeddy" in Symbol 343 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 343 MovieClip Frame 2
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 3
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 4
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 12
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 13
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 14
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 15
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 30
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 31
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 32
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 33
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 46
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 47
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 48
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 62
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 63
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 64
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 65
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 80
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollsnd1ins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this._parent.BS_dollsnd1ins);
} else {
this.createEmptyMovieClip("_dollsnd1ins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this.BS_dollsnd1ins);
}
_global.Behaviors.Sound.dollsnd1ins.attachSound("dollsnd1");
_global.Behaviors.Sound.dollsnd1ins.start(0, 1);
} else {
_global.Behaviors.Sound.dollsnd1ins.stop("dollsnd1");
}
Symbol 343 MovieClip Frame 94
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Instance of Symbol 283 MovieClip "hitAreaPuke" in Symbol 343 MovieClip Frame 95
onClipEvent (load) {
_visible = false;
}
Symbol 343 MovieClip Frame 106
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollsnd1ins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this._parent.BS_dollsnd1ins);
} else {
this.createEmptyMovieClip("_dollsnd1ins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this.BS_dollsnd1ins);
}
_global.Behaviors.Sound.dollsnd1ins.attachSound("dollsnd1");
_global.Behaviors.Sound.dollsnd1ins.start(0, 1);
} else {
_global.Behaviors.Sound.dollsnd1ins.stop("dollsnd1");
}
stop();
Symbol 343 MovieClip Frame 123
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Instance of Symbol 283 MovieClip "hitAreaNappy" in Symbol 343 MovieClip Frame 123
onClipEvent (load) {
_visible = false;
}
Symbol 343 MovieClip Frame 138
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Instance of Symbol 283 MovieClip "hitAreaPuke" in Symbol 343 MovieClip Frame 138
onClipEvent (load) {
_visible = false;
}
Symbol 343 MovieClip Frame 155
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Instance of Symbol 283 MovieClip "hitAreaPuke" in Symbol 343 MovieClip Frame 155
onClipEvent (load) {
_visible = false;
}
Symbol 343 MovieClip Frame 170
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
stop();
Symbol 343 MovieClip Frame 187
this._parent.cot1._visible = false;
this._parent.cotTop1._visible = false;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_milkins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.milkins = new Sound(this._parent.BS_milkins);
} else {
this.createEmptyMovieClip("_milkins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.milkins = new Sound(this.BS_milkins);
}
_global.Behaviors.Sound.milkins.attachSound("milksnd");
_global.Behaviors.Sound.milkins.start(0, 2);
} else {
_global.Behaviors.Sound.milkins.stop("milksnd");
}
stop();
Instance of Symbol 341 MovieClip "bottle" in Symbol 343 MovieClip Frame 187
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 283 MovieClip "hitAreaBottle" in Symbol 343 MovieClip Frame 187
onClipEvent (load) {
_visible = false;
}
Symbol 343 MovieClip Frame 200
this._parent.cot1._visible = true;
this._parent.cotTop1._visible = true;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollsnd1ins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this._parent.BS_dollsnd1ins);
} else {
this.createEmptyMovieClip("_dollsnd1ins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this.BS_dollsnd1ins);
}
_global.Behaviors.Sound.dollsnd1ins.attachSound("dollsnd1");
_global.Behaviors.Sound.dollsnd1ins.start(0, 1);
} else {
_global.Behaviors.Sound.dollsnd1ins.stop("dollsnd1");
}
stop();
Symbol 360 MovieClip Frame 10
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_showerins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.showerins = new Sound(this._parent.BS_showerins);
} else {
this.createEmptyMovieClip("_showerins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.showerins = new Sound(this.BS_showerins);
}
_global.Behaviors.Sound.showerins.attachSound("shower");
_global.Behaviors.Sound.showerins.start(0, 1);
} else {
_global.Behaviors.Sound.showerins.stop("shower");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.showerins.stop("shower");
}
Symbol 360 MovieClip Frame 65
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_mouthins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mouthins = new Sound(this._parent.BS_mouthins);
} else {
this.createEmptyMovieClip("_mouthins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mouthins = new Sound(this.BS_mouthins);
}
_global.Behaviors.Sound.mouthins.attachSound("mouthsnd");
_global.Behaviors.Sound.mouthins.start(0, 1);
} else {
_global.Behaviors.Sound.mouthins.stop("mouthsnd");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.mouthins.stop("mouthsnd");
}
Symbol 379 MovieClip Frame 14
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_waterins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.waterins = new Sound(this._parent.BS_waterins);
} else {
this.createEmptyMovieClip("_waterins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.waterins = new Sound(this.BS_waterins);
}
_global.Behaviors.Sound.waterins.attachSound("watersnd");
_global.Behaviors.Sound.waterins.start(0, 1);
} else {
_global.Behaviors.Sound.waterins.stop("watersnd");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.waterins.stop("watersnd");
}
Symbol 388 MovieClip Frame 1
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Instance of Symbol 357 MovieClip "hitAreaHead" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 358 MovieClip "hitAreaRock" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 357 MovieClip "hitAreaTeddy" in Symbol 388 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 388 MovieClip Frame 2
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 3
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 4
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 12
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 13
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 14
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 15
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 30
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 31
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 32
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 33
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 46
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 47
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 48
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 62
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 63
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 64
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 65
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 80
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollins = new Sound(this._parent.BS_dollins);
} else {
this.createEmptyMovieClip("_dollins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollins = new Sound(this.BS_dollins);
}
_global.Behaviors.Sound.dollins.attachSound("dollsnd");
_global.Behaviors.Sound.dollins.start(0, 1);
} else {
_global.Behaviors.Sound.dollins.stop("dollsnd");
}
Symbol 388 MovieClip Frame 94
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Instance of Symbol 357 MovieClip "hitAreaPuke" in Symbol 388 MovieClip Frame 95
onClipEvent (load) {
_visible = false;
}
Symbol 388 MovieClip Frame 106
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollins = new Sound(this._parent.BS_dollins);
} else {
this.createEmptyMovieClip("_dollins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollins = new Sound(this.BS_dollins);
}
_global.Behaviors.Sound.dollins.attachSound("dollsnd");
_global.Behaviors.Sound.dollins.start(0, 1);
} else {
_global.Behaviors.Sound.dollins.stop("dollsnd");
}
stop();
Symbol 388 MovieClip Frame 123
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Instance of Symbol 357 MovieClip "hitAreaNappy" in Symbol 388 MovieClip Frame 123
onClipEvent (load) {
_visible = false;
}
Symbol 388 MovieClip Frame 138
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Instance of Symbol 357 MovieClip "hitAreaPuke" in Symbol 388 MovieClip Frame 138
onClipEvent (load) {
_visible = false;
}
Symbol 388 MovieClip Frame 155
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Instance of Symbol 357 MovieClip "hitAreaPuke" in Symbol 388 MovieClip Frame 155
onClipEvent (load) {
_visible = false;
}
Symbol 388 MovieClip Frame 170
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
stop();
Symbol 388 MovieClip Frame 187
this._parent.cot3._visible = false;
this._parent.cotTop3._visible = false;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_milkins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.milkins = new Sound(this._parent.BS_milkins);
} else {
this.createEmptyMovieClip("_milkins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.milkins = new Sound(this.BS_milkins);
}
_global.Behaviors.Sound.milkins.attachSound("milksnd");
_global.Behaviors.Sound.milkins.start(0, 2);
} else {
_global.Behaviors.Sound.milkins.stop("milksnd");
}
stop();
Instance of Symbol 341 MovieClip "bottle" in Symbol 388 MovieClip Frame 187
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 357 MovieClip "hitAreaBottle" in Symbol 388 MovieClip Frame 187
onClipEvent (load) {
_visible = false;
}
Symbol 388 MovieClip Frame 200
this._parent.cot3._visible = true;
this._parent.cotTop3._visible = true;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollins = new Sound(this._parent.BS_dollins);
} else {
this.createEmptyMovieClip("_dollins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollins = new Sound(this.BS_dollins);
}
_global.Behaviors.Sound.dollins.attachSound("dollsnd");
_global.Behaviors.Sound.dollins.start(0, 1);
} else {
_global.Behaviors.Sound.dollins.stop("dollsnd");
}
stop();
Symbol 389 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 439 MovieClip Frame 18
this.gotoAndPlay(2);
Symbol 441 MovieClip Frame 1
this.gotoAndStop(thisScope.colorTest);
Symbol 443 MovieClip Frame 1
this.gotoAndStop(thisScope.colorTest);
Symbol 452 MovieClip Frame 1
stop();
Instance of Symbol 439 MovieClip "teddy" in Symbol 452 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
Instance of Symbol 441 MovieClip "burp" in Symbol 452 MovieClip Frame 3
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
Instance of Symbol 443 MovieClip "rock" in Symbol 452 MovieClip Frame 4
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
Instance of Symbol 451 MovieClip in Symbol 452 MovieClip Frame 7
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
Symbol 461 MovieClip Frame 22
_parent._visible = false;
_parent.gotoAndStop(4);
Symbol 463 MovieClip Frame 19
_parent._visible = false;
_parent.gotoAndStop(4);
Symbol 465 MovieClip Frame 21
_parent._visible = false;
_parent.gotoAndStop(4);
Symbol 466 MovieClip Frame 1
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pointins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pointins = new Sound(this._parent.BS_pointins);
} else {
this.createEmptyMovieClip("_pointins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pointins = new Sound(this.BS_pointins);
}
_global.Behaviors.Sound.pointins.attachSound("pointsnd");
_global.Behaviors.Sound.pointins.start(0, 1);
} else {
_global.Behaviors.Sound.closeins.stop("closesnd");
}
Symbol 466 MovieClip Frame 2
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pointins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pointins = new Sound(this._parent.BS_pointins);
} else {
this.createEmptyMovieClip("_pointins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pointins = new Sound(this.BS_pointins);
}
_global.Behaviors.Sound.pointins.attachSound("pointsnd");
_global.Behaviors.Sound.pointins.start(0, 1);
} else {
_global.Behaviors.Sound.closeins.stop("closesnd");
}
Symbol 466 MovieClip Frame 3
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pointins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pointins = new Sound(this._parent.BS_pointins);
} else {
this.createEmptyMovieClip("_pointins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pointins = new Sound(this.BS_pointins);
}
_global.Behaviors.Sound.pointins.attachSound("pointsnd");
_global.Behaviors.Sound.pointins.start(0, 1);
} else {
_global.Behaviors.Sound.closeins.stop("closesnd");
}
Symbol 466 MovieClip Frame 4
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 485 MovieClip Frame 1
stop();
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_closeins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.closeins = new Sound(this._parent.BS_closeins);
} else {
this.createEmptyMovieClip("_closeins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.closeins = new Sound(this.BS_closeins);
}
_global.Behaviors.Sound.closeins.attachSound("closesnd");
_global.Behaviors.Sound.closeins.start(0, 1);
} else {
_global.Behaviors.Sound.closeins.stop("closesnd");
}
Instance of Symbol 283 MovieClip "hitAreaMC" in Symbol 485 MovieClip Frame 2
on (release) {
this._parent.nappyCursor._visible = false;
}
Symbol 487 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 104
this.gotoAndPlay("speaking");
Symbol 489 MovieClip Frame 225
this.gotoAndPlay("sleeping");
Symbol 489 MovieClip Frame 341
this.gotoAndPlay("wakingUp");
Symbol 491 MovieClip Frame 104
this.gotoAndPlay("speaking");
Symbol 491 MovieClip Frame 225
this.gotoAndPlay("sleeping");
Symbol 491 MovieClip Frame 341
this.gotoAndPlay("wakingUp");
Symbol 494 MovieClip Frame 1
stop();
Symbol 498 MovieClip Frame 1
this.gotoAndStop(thisScope.colorTest);
Symbol 499 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-ig&utm_campaign=brandedgames", "_blank");
}
Symbol 506 Button
on (release) {
this.gotoAndStop(2);
}
Instance of Symbol 283 MovieClip "hitAreaMC" in Symbol 545 MovieClip Frame 1
on (release) {
this._parent.nappyCursor._visible = false;
}
Symbol 556 Button
on (release) {
this.gotoAndStop(1);
}
Symbol 558 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 2
stop();
Instance of Symbol 443 MovieClip "rock" in Symbol 558 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Symbol 558 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Symbol 558 MovieClip Frame 2
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Symbol 558 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Symbol 558 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 341 MovieClip "bottle" in Symbol 558 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Symbol 582 Button
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 587 Button
on (release) {
_parent.startGame();
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 596 MovieClip Frame 1
delete this.onEnterFrame;
stop();
Symbol 596 MovieClip Frame 2
if (_root.soundHandler.muted != true) {
fadeSoundIn("tt_titleMod", 99999, 20);
}
Symbol 596 MovieClip Frame 4
_visible = true;
this.onEnterFrame = function () {
if (logo._currentframe == logo._totalframes) {
delete this.onEnterFrame;
this.gotoAndPlay(this._currentframe + 1);
}
};
stop();
Symbol 596 MovieClip Frame 5
this._parent.leveltxt2();
function displayInstructions() {
playSound("base_click");
instructions._visible = true;
instructions.gotoAndPlay(1);
instructionsOverlay._visible = true;
instructionsOverlay.gotoAndPlay(1);
instructionsOverlay.onPress = function () {
};
delete clouds.onEnterFrame;
}
function hideInstructions() {
playSound("base_click");
instructions._visible = false;
clouds.onEnterFrame = moveClouds;
instructionsOverlay.gotoAndPlay("out");
}
function moveClouds() {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
cloudsXPos = clouds._x;
}
var cloudsXPos = 0;
instructionsOverlay.useHandCursor = false;
logo.onEnterFrame = function () {
if (Key.isDown(27)) {
delete this.onEnterFrame;
gotoAndPlay ("quitGame");
}
};
instructionsButton.onPress = displayInstructions;
instructionsButton.onRollOver = function () {
playSound("base_rollover");
helpButtonRollover.gotoAndPlay(2);
};
playButton.onPress = function () {
playSound("base_click");
if (_root.soundHandler.muted == true) {
var _local3 = 0;
} else {
var _local3 = 100;
}
fadeSoundOut("tt_titleMod", 0, 10, 0, _local3);
_parent.startGame();
};
playButton.onRollOver = function () {
playSound("base_rollover");
playButtonRollover.gotoAndPlay(2);
};
quitButton.onRollOver = function () {
playSound("base_rollover");
quitButtonRollover.gotoAndPlay(2);
};
quitButton.onPress = function () {
playSound("base_click");
gotoAndPlay ("quitGame");
};
mouseButton.onRollOver = function () {
if (mouseToolTip.onEnterFrame == undefined) {
playSound("base_rollover");
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
mouseButton.onRollOut = function () {
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
};
hiScoresButton.onRollOver = function () {
if (hiScoreWindow.onEnterFrame == undefined) {
playSound("base_rollover");
hiScoreWindow._alpha = 0;
hiScoreWindow._visible = true;
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
hiScoresButton.onRollOut = function () {
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
}
};
};
clouds.onEnterFrame = moveClouds;
stop();
Instance of Symbol 443 MovieClip "rock" in Symbol 596 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Symbol 596 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Symbol 596 MovieClip Frame 5
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Symbol 596 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Symbol 596 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 341 MovieClip "bottle" in Symbol 596 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Symbol 596 MovieClip Frame 7
_visible = true;
if (_parent.score > _parent.bestScore) {
_parent.bestScore = _parent.score;
_parent.ids.props.bestScore = _parent.bestScore;
_parent.ids.saveLocal();
}
Symbol 596 MovieClip Frame 9
if (_root.soundHandler.muted != true) {
fadeSoundIn("tt_titleMod", 99999, 30);
}
Symbol 596 MovieClip Frame 11
this.onEnterFrame = function () {
if (gameOverLogo._currentframe == gameOverLogo._totalframes) {
delete this.onEnterFrame;
this.gotoAndPlay(this._currentframe + 1);
}
};
stop();
Symbol 596 MovieClip Frame 12
function displayInstructions() {
playSound("base_click");
instructions._visible = true;
instructions.gotoAndPlay(1);
instructionsOverlay._visible = true;
instructionsOverlay.gotoAndPlay(1);
instructionsOverlay.onPress = function () {
};
delete clouds.onEnterFrame;
}
function hideInstructions() {
playSound("base_click");
instructions._visible = false;
clouds.onEnterFrame = moveClouds;
instructionsOverlay.gotoAndPlay("out");
}
function moveClouds() {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
cloudsXPos = clouds._x;
}
var cloudsXPos = 0;
instructionsOverlay.useHandCursor = false;
logo.onEnterFrame = function () {
if (Key.isDown(27)) {
delete this.onEnterFrame;
gotoAndPlay ("quitGame");
}
};
instructionsButton.onPress = displayInstructions;
instructionsButton.onRollOver = function () {
playSound("base_rollover");
helpButtonRollover.gotoAndPlay(2);
};
playButton.onPress = function () {
playSound("base_click");
if (_root.soundHandler.muted == true) {
var _local3 = 0;
} else {
var _local3 = 100;
}
fadeSoundOut("tt_titleMod", 0, 10, 0, _local3);
_parent.startGame();
};
playButton.onRollOver = function () {
playSound("base_rollover");
playButtonRollover.gotoAndPlay(2);
};
quitButton.onRollOver = function () {
playSound("base_rollover");
quitButtonRollover.gotoAndPlay(2);
};
quitButton.onPress = function () {
playSound("base_click");
gotoAndPlay ("quitGame");
};
mouseButton.onRollOver = function () {
if (mouseToolTip.onEnterFrame == undefined) {
playSound("base_rollover");
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
mouseButton.onRollOut = function () {
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
};
hiScoresButton.onRollOver = function () {
if (hiScoreWindow.onEnterFrame == undefined) {
playSound("base_rollover");
hiScoreWindow._alpha = 0;
hiScoreWindow._visible = true;
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
hiScoresButton.onRollOut = function () {
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
}
};
};
clouds.onEnterFrame = moveClouds;
stop();
this._parent.tryagain2();
scoreBox.playerName.text = _parent.playerName;
scoreBox.totalTime.text = _parent.seconds;
scoreBox.totalScore.text = _parent.score;
clouds.onEnterFrame = function () {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
};
stop();
Symbol 596 MovieClip Frame 15
this.gotoAndPlay(2);
Symbol 596 MovieClip Frame 17
if (_root.soundHandler.muted == true) {
var endVolume = 0;
} else {
var endVolume = 100;
}
fadeSoundOut("tt_titleMod", 0, 5, 0, endVolume);
Symbol 596 MovieClip Frame 20
_parent.gameBroadcastObject.broadcastMessage("gameQuit");
stop();
Symbol 611 Button
on (release) {
gotoAndPlay ("game2");
}
on (release) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 613 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-ig-l1&utm_campaign=brandedgames", "_blank");
}
Symbol 626 MovieClip Frame 1
stop();
Symbol 637 MovieClip Frame 11
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_showerins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.showerins = new Sound(this._parent.BS_showerins);
} else {
this.createEmptyMovieClip("_showerins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.showerins = new Sound(this.BS_showerins);
}
_global.Behaviors.Sound.showerins.attachSound("shower");
_global.Behaviors.Sound.showerins.start(0, 1);
} else {
_global.Behaviors.Sound.showerins.stop("shower");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.showerins.stop("shower");
}
Symbol 637 MovieClip Frame 65
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_mouthins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mouthins = new Sound(this._parent.BS_mouthins);
} else {
this.createEmptyMovieClip("_mouthins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.mouthins = new Sound(this.BS_mouthins);
}
_global.Behaviors.Sound.mouthins.attachSound("mouthsnd");
_global.Behaviors.Sound.mouthins.start(0, 1);
} else {
_global.Behaviors.Sound.mouthins.stop("mouthsnd");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.mouthins.stop("mouthsnd");
}
Symbol 660 MovieClip Frame 14
if (this._parent._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_waterins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.waterins = new Sound(this._parent.BS_waterins);
} else {
this.createEmptyMovieClip("_waterins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.waterins = new Sound(this.BS_waterins);
}
_global.Behaviors.Sound.waterins.attachSound("watersnd");
_global.Behaviors.Sound.waterins.start(0, 1);
} else {
_global.Behaviors.Sound.waterins.stop("watersnd");
}
if (this._parent._parent.mussnd._currentframe == 2) {
_global.Behaviors.Sound.waterins.stop("watersnd");
}
Symbol 674 MovieClip Frame 1
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Instance of Symbol 628 MovieClip "hitAreaHead" in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 285 MovieClip "hitAreaRock" in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 628 MovieClip "hitAreaTeddy" in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 674 MovieClip Frame 2
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 3
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 4
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 12
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 13
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 14
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 15
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 30
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 31
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 32
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 33
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 46
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 47
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 48
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 62
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 63
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 64
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 65
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 80
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollsnd1ins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this._parent.BS_dollsnd1ins);
} else {
this.createEmptyMovieClip("_dollsnd1ins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this.BS_dollsnd1ins);
}
_global.Behaviors.Sound.dollsnd1ins.attachSound("dollsnd1");
_global.Behaviors.Sound.dollsnd1ins.start(0, 1);
} else {
_global.Behaviors.Sound.dollsnd1ins.stop("dollsnd1");
}
Symbol 674 MovieClip Frame 94
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Instance of Symbol 628 MovieClip "hitAreaPuke" in Symbol 674 MovieClip Frame 95
onClipEvent (load) {
_visible = false;
}
Symbol 674 MovieClip Frame 106
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollsnd1ins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this._parent.BS_dollsnd1ins);
} else {
this.createEmptyMovieClip("_dollsnd1ins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this.BS_dollsnd1ins);
}
_global.Behaviors.Sound.dollsnd1ins.attachSound("dollsnd1");
_global.Behaviors.Sound.dollsnd1ins.start(0, 1);
} else {
_global.Behaviors.Sound.dollsnd1ins.stop("dollsnd1");
}
stop();
Symbol 674 MovieClip Frame 123
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Instance of Symbol 628 MovieClip "hitAreaNappy" in Symbol 674 MovieClip Frame 123
onClipEvent (load) {
_visible = false;
}
Symbol 674 MovieClip Frame 138
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Instance of Symbol 628 MovieClip "hitAreaPuke" in Symbol 674 MovieClip Frame 138
onClipEvent (load) {
_visible = false;
}
Symbol 674 MovieClip Frame 155
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Instance of Symbol 628 MovieClip "hitAreaPuke" in Symbol 674 MovieClip Frame 155
onClipEvent (load) {
_visible = false;
}
Symbol 674 MovieClip Frame 170
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
stop();
Symbol 674 MovieClip Frame 187
this._parent.cot2._visible = false;
this._parent.cotTop2._visible = false;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_milkins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.milkins = new Sound(this._parent.BS_milkins);
} else {
this.createEmptyMovieClip("_milkins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.milkins = new Sound(this.BS_milkins);
}
_global.Behaviors.Sound.milkins.attachSound("milksnd");
_global.Behaviors.Sound.milkins.start(0, 2);
} else {
_global.Behaviors.Sound.milkins.stop("milksnd");
}
stop();
Instance of Symbol 341 MovieClip "bottle" in Symbol 674 MovieClip Frame 187
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 628 MovieClip "hitAreaBottle" in Symbol 674 MovieClip Frame 187
onClipEvent (load) {
_visible = false;
}
Symbol 674 MovieClip Frame 200
this._parent.cot2._visible = true;
this._parent.cotTop2._visible = true;
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_dollsnd1ins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this._parent.BS_dollsnd1ins);
} else {
this.createEmptyMovieClip("_dollsnd1ins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.dollsnd1ins = new Sound(this.BS_dollsnd1ins);
}
_global.Behaviors.Sound.dollsnd1ins.attachSound("dollsnd1");
_global.Behaviors.Sound.dollsnd1ins.start(0, 1);
} else {
_global.Behaviors.Sound.dollsnd1ins.stop("dollsnd1");
}
stop();
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 2
stop();
Instance of Symbol 443 MovieClip "rock" in Symbol 680 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Symbol 680 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Symbol 680 MovieClip Frame 2
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Symbol 680 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Symbol 680 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 341 MovieClip "bottle" in Symbol 680 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Symbol 686 Button
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 692 MovieClip Frame 1
delete this.onEnterFrame;
stop();
Symbol 692 MovieClip Frame 2
if (_root.soundHandler.muted != true) {
fadeSoundIn("tt_titleMod", 99999, 20);
}
Symbol 692 MovieClip Frame 4
_visible = true;
this.onEnterFrame = function () {
if (logo._currentframe == logo._totalframes) {
delete this.onEnterFrame;
this.gotoAndPlay(this._currentframe + 1);
}
};
stop();
Symbol 692 MovieClip Frame 5
this._parent.leveltxt2();
function displayInstructions() {
playSound("base_click");
instructions._visible = true;
instructions.gotoAndPlay(1);
instructionsOverlay._visible = true;
instructionsOverlay.gotoAndPlay(1);
instructionsOverlay.onPress = function () {
};
delete clouds.onEnterFrame;
}
function hideInstructions() {
playSound("base_click");
instructions._visible = false;
clouds.onEnterFrame = moveClouds;
instructionsOverlay.gotoAndPlay("out");
}
function moveClouds() {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
cloudsXPos = clouds._x;
}
var cloudsXPos = 0;
instructionsOverlay.useHandCursor = false;
logo.onEnterFrame = function () {
if (Key.isDown(27)) {
delete this.onEnterFrame;
gotoAndPlay ("quitGame");
}
};
instructionsButton.onPress = displayInstructions;
instructionsButton.onRollOver = function () {
playSound("base_rollover");
helpButtonRollover.gotoAndPlay(2);
};
playButton.onPress = function () {
playSound("base_click");
if (_root.soundHandler.muted == true) {
var _local3 = 0;
} else {
var _local3 = 100;
}
fadeSoundOut("tt_titleMod", 0, 10, 0, _local3);
_parent.startGame();
};
playButton.onRollOver = function () {
playSound("base_rollover");
playButtonRollover.gotoAndPlay(2);
};
quitButton.onRollOver = function () {
playSound("base_rollover");
quitButtonRollover.gotoAndPlay(2);
};
quitButton.onPress = function () {
playSound("base_click");
gotoAndPlay ("quitGame");
};
mouseButton.onRollOver = function () {
if (mouseToolTip.onEnterFrame == undefined) {
playSound("base_rollover");
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
mouseButton.onRollOut = function () {
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
};
hiScoresButton.onRollOver = function () {
if (hiScoreWindow.onEnterFrame == undefined) {
playSound("base_rollover");
hiScoreWindow._alpha = 0;
hiScoreWindow._visible = true;
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
hiScoresButton.onRollOut = function () {
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
}
};
};
clouds.onEnterFrame = moveClouds;
stop();
Instance of Symbol 443 MovieClip "rock" in Symbol 692 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Symbol 692 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Symbol 692 MovieClip Frame 5
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Symbol 692 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Symbol 692 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 341 MovieClip "bottle" in Symbol 692 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Symbol 692 MovieClip Frame 7
_visible = true;
if (_parent.score > _parent.bestScore) {
_parent.bestScore = _parent.score;
_parent.ids.props.bestScore = _parent.bestScore;
_parent.ids.saveLocal();
}
Symbol 692 MovieClip Frame 9
if (_root.soundHandler.muted != true) {
fadeSoundIn("tt_titleMod", 99999, 30);
}
Symbol 692 MovieClip Frame 11
this.onEnterFrame = function () {
if (gameOverLogo._currentframe == gameOverLogo._totalframes) {
delete this.onEnterFrame;
this.gotoAndPlay(this._currentframe + 1);
}
};
stop();
Symbol 692 MovieClip Frame 12
function displayInstructions() {
playSound("base_click");
instructions._visible = true;
instructions.gotoAndPlay(1);
instructionsOverlay._visible = true;
instructionsOverlay.gotoAndPlay(1);
instructionsOverlay.onPress = function () {
};
delete clouds.onEnterFrame;
}
function hideInstructions() {
playSound("base_click");
instructions._visible = false;
clouds.onEnterFrame = moveClouds;
instructionsOverlay.gotoAndPlay("out");
}
function moveClouds() {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
cloudsXPos = clouds._x;
}
var cloudsXPos = 0;
instructionsOverlay.useHandCursor = false;
logo.onEnterFrame = function () {
if (Key.isDown(27)) {
delete this.onEnterFrame;
gotoAndPlay ("quitGame");
}
};
instructionsButton.onPress = displayInstructions;
instructionsButton.onRollOver = function () {
playSound("base_rollover");
helpButtonRollover.gotoAndPlay(2);
};
playButton.onPress = function () {
playSound("base_click");
if (_root.soundHandler.muted == true) {
var _local3 = 0;
} else {
var _local3 = 100;
}
fadeSoundOut("tt_titleMod", 0, 10, 0, _local3);
_parent.startGame();
};
playButton.onRollOver = function () {
playSound("base_rollover");
playButtonRollover.gotoAndPlay(2);
};
quitButton.onRollOver = function () {
playSound("base_rollover");
quitButtonRollover.gotoAndPlay(2);
};
quitButton.onPress = function () {
playSound("base_click");
gotoAndPlay ("quitGame");
};
mouseButton.onRollOver = function () {
if (mouseToolTip.onEnterFrame == undefined) {
playSound("base_rollover");
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
mouseButton.onRollOut = function () {
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
};
hiScoresButton.onRollOver = function () {
if (hiScoreWindow.onEnterFrame == undefined) {
playSound("base_rollover");
hiScoreWindow._alpha = 0;
hiScoreWindow._visible = true;
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
hiScoresButton.onRollOut = function () {
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
}
};
};
clouds.onEnterFrame = moveClouds;
stop();
this._parent.tryagain2();
scoreBox.playerName.text = _parent.playerName;
scoreBox.totalTime.text = _parent.seconds;
scoreBox.totalScore.text = _parent.score;
clouds.onEnterFrame = function () {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
};
okButton.onPress = function () {
delete okButton.onPress;
delete okButton.onRollOver;
delete clouds.onEnterFrame;
playSound("base_click");
gotoAndPlay(_currentframe + 1);
};
okButton.onRollOver = function () {
playSound("base_rollover");
okButtonsurround.gotoAndPlay(2);
};
stop();
Symbol 692 MovieClip Frame 15
this.gotoAndPlay(2);
Symbol 692 MovieClip Frame 17
if (_root.soundHandler.muted == true) {
var endVolume = 0;
} else {
var endVolume = 100;
}
fadeSoundOut("tt_titleMod", 0, 5, 0, endVolume);
Symbol 692 MovieClip Frame 20
_parent.gameBroadcastObject.broadcastMessage("gameQuit");
stop();
Symbol 695 Button
on (release) {
gotoAndPlay ("game3");
}
on (release) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 699 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-ig-l2&utm_campaign=brandedgames", "_blank");
}
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
stop();
Instance of Symbol 443 MovieClip "rock" in Symbol 705 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Symbol 705 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Symbol 705 MovieClip Frame 2
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Symbol 705 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Symbol 705 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 341 MovieClip "bottle" in Symbol 705 MovieClip Frame 2
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Symbol 711 Button
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 712 Button
on (release) {
getURL ("http://www.girlgames1.com/", "_blank");
}
Symbol 718 MovieClip Frame 1
delete this.onEnterFrame;
stop();
Symbol 718 MovieClip Frame 2
if (_root.soundHandler.muted != true) {
fadeSoundIn("tt_titleMod", 99999, 20);
}
Symbol 718 MovieClip Frame 4
_visible = true;
this.onEnterFrame = function () {
if (logo._currentframe == logo._totalframes) {
delete this.onEnterFrame;
this.gotoAndPlay(this._currentframe + 1);
}
};
stop();
Symbol 718 MovieClip Frame 5
this._parent.leveltxt2();
function displayInstructions() {
playSound("base_click");
instructions._visible = true;
instructions.gotoAndPlay(1);
instructionsOverlay._visible = true;
instructionsOverlay.gotoAndPlay(1);
instructionsOverlay.onPress = function () {
};
delete clouds.onEnterFrame;
}
function hideInstructions() {
playSound("base_click");
instructions._visible = false;
clouds.onEnterFrame = moveClouds;
instructionsOverlay.gotoAndPlay("out");
}
function moveClouds() {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
cloudsXPos = clouds._x;
}
var cloudsXPos = 0;
instructionsOverlay.useHandCursor = false;
logo.onEnterFrame = function () {
if (Key.isDown(27)) {
delete this.onEnterFrame;
gotoAndPlay ("quitGame");
}
};
instructionsButton.onPress = displayInstructions;
instructionsButton.onRollOver = function () {
playSound("base_rollover");
helpButtonRollover.gotoAndPlay(2);
};
playButton.onPress = function () {
playSound("base_click");
if (_root.soundHandler.muted == true) {
var _local3 = 0;
} else {
var _local3 = 100;
}
fadeSoundOut("tt_titleMod", 0, 10, 0, _local3);
_parent.startGame();
};
playButton.onRollOver = function () {
playSound("base_rollover");
playButtonRollover.gotoAndPlay(2);
};
quitButton.onRollOver = function () {
playSound("base_rollover");
quitButtonRollover.gotoAndPlay(2);
};
quitButton.onPress = function () {
playSound("base_click");
gotoAndPlay ("quitGame");
};
mouseButton.onRollOver = function () {
if (mouseToolTip.onEnterFrame == undefined) {
playSound("base_rollover");
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
mouseButton.onRollOut = function () {
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
};
hiScoresButton.onRollOver = function () {
if (hiScoreWindow.onEnterFrame == undefined) {
playSound("base_rollover");
hiScoreWindow._alpha = 0;
hiScoreWindow._visible = true;
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
hiScoresButton.onRollOut = function () {
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
}
};
};
clouds.onEnterFrame = moveClouds;
stop();
Instance of Symbol 443 MovieClip "rock" in Symbol 718 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 439 MovieClip "teddy" in Symbol 718 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 446 MovieClip "wipe" in Symbol 718 MovieClip Frame 5
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 451 MovieClip "nappy" in Symbol 718 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 441 MovieClip "burp" in Symbol 718 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Instance of Symbol 341 MovieClip "bottle" in Symbol 718 MovieClip Frame 5
onClipEvent (load) {
var orignalX = this._x;
var orignalY = this._y;
}
on (press) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_pressins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this._parent.BS_pressins);
} else {
this.createEmptyMovieClip("_pressins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.pressins = new Sound(this.BS_pressins);
}
_global.Behaviors.Sound.pressins.attachSound("presssnd");
_global.Behaviors.Sound.pressins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
on (release) {
if (this._parent.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_releaseins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this._parent.BS_releaseins);
} else {
this.createEmptyMovieClip("_releaseins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.releaseins = new Sound(this.BS_releaseins);
}
_global.Behaviors.Sound.releaseins.attachSound("releasesnd");
_global.Behaviors.Sound.releaseins.start(0, 1);
} else {
_global.Behaviors.Sound.pressins.stop("presssnd");
}
}
Symbol 718 MovieClip Frame 7
_visible = true;
if (_parent.score > _parent.bestScore) {
_parent.bestScore = _parent.score;
_parent.ids.props.bestScore = _parent.bestScore;
_parent.ids.saveLocal();
}
Symbol 718 MovieClip Frame 9
if (_root.soundHandler.muted != true) {
fadeSoundIn("tt_titleMod", 99999, 30);
}
Symbol 718 MovieClip Frame 11
this.onEnterFrame = function () {
if (gameOverLogo._currentframe == gameOverLogo._totalframes) {
delete this.onEnterFrame;
this.gotoAndPlay(this._currentframe + 1);
}
};
stop();
Symbol 718 MovieClip Frame 12
function displayInstructions() {
playSound("base_click");
instructions._visible = true;
instructions.gotoAndPlay(1);
instructionsOverlay._visible = true;
instructionsOverlay.gotoAndPlay(1);
instructionsOverlay.onPress = function () {
};
delete clouds.onEnterFrame;
}
function hideInstructions() {
playSound("base_click");
instructions._visible = false;
clouds.onEnterFrame = moveClouds;
instructionsOverlay.gotoAndPlay("out");
}
function moveClouds() {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
cloudsXPos = clouds._x;
}
var cloudsXPos = 0;
instructionsOverlay.useHandCursor = false;
logo.onEnterFrame = function () {
if (Key.isDown(27)) {
delete this.onEnterFrame;
gotoAndPlay ("quitGame");
}
};
instructionsButton.onPress = displayInstructions;
instructionsButton.onRollOver = function () {
playSound("base_rollover");
helpButtonRollover.gotoAndPlay(2);
};
playButton.onPress = function () {
playSound("base_click");
if (_root.soundHandler.muted == true) {
var _local3 = 0;
} else {
var _local3 = 100;
}
fadeSoundOut("tt_titleMod", 0, 10, 0, _local3);
_parent.startGame();
};
playButton.onRollOver = function () {
playSound("base_rollover");
playButtonRollover.gotoAndPlay(2);
};
quitButton.onRollOver = function () {
playSound("base_rollover");
quitButtonRollover.gotoAndPlay(2);
};
quitButton.onPress = function () {
playSound("base_click");
gotoAndPlay ("quitGame");
};
mouseButton.onRollOver = function () {
if (mouseToolTip.onEnterFrame == undefined) {
playSound("base_rollover");
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
mouseButton.onRollOut = function () {
mouseToolTip.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
delete this.onEnterFrame;
}
};
};
hiScoresButton.onRollOver = function () {
if (hiScoreWindow.onEnterFrame == undefined) {
playSound("base_rollover");
hiScoreWindow._alpha = 0;
hiScoreWindow._visible = true;
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha + 20;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
}
};
hiScoresButton.onRollOut = function () {
hiScoreWindow.onEnterFrame = function () {
this._alpha = this._alpha - 25;
if (this._alpha <= 0) {
this._alpha = 0;
this._visible = false;
delete this.onEnterFrame;
}
};
};
clouds.onEnterFrame = moveClouds;
stop();
this._parent.tryagain2();
scoreBox.playerName.text = _parent.playerName;
scoreBox.totalTime.text = _parent.seconds;
scoreBox.totalScore.text = _parent.score;
clouds.onEnterFrame = function () {
this._x = this._x - 2;
if (this._x == -340) {
this._x = -120;
}
};
okButton.onPress = function () {
delete okButton.onPress;
delete okButton.onRollOver;
delete clouds.onEnterFrame;
playSound("base_click");
gotoAndPlay(_currentframe + 1);
};
okButton.onRollOver = function () {
playSound("base_rollover");
okButtonsurround.gotoAndPlay(2);
};
stop();
Symbol 718 MovieClip Frame 15
this.gotoAndPlay(2);
Symbol 718 MovieClip Frame 17
if (_root.soundHandler.muted == true) {
var endVolume = 0;
} else {
var endVolume = 100;
}
fadeSoundOut("tt_titleMod", 0, 5, 0, endVolume);
Symbol 718 MovieClip Frame 20
_parent.gameBroadcastObject.broadcastMessage("gameQuit");
stop();
Symbol 726 Button
on (release) {
gotoAndStop ("end");
}
on (release) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 733 Button
on (release) {
getURL ("http://www.girlgames1.com/", "_blank");
}
on (release) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_clickins", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this._parent.BS_clickins);
} else {
this.createEmptyMovieClip("_clickins_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.clickins = new Sound(this.BS_clickins);
}
_global.Behaviors.Sound.clickins.attachSound("clicksnd");
_global.Behaviors.Sound.clickins.start(0, 1);
} else {
_global.Behaviors.Sound.clickins.stop("mussnd");
}
}
on (rollOver) {
if (this.mussnd._currentframe == 1) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_loose", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this._parent.BS_loose);
} else {
this.createEmptyMovieClip("_loose_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.loose = new Sound(this.BS_loose);
}
_global.Behaviors.Sound.loose.attachSound("mainroll");
_global.Behaviors.Sound.loose.start(0, 1);
} else {
_global.Behaviors.Sound.loose.stop("mussnd");
}
}
Symbol 735 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-dp&utm_campaign=brandedgames", "_blank");
}
Symbol 761 MovieClip Frame 40
stop();
Symbol 763 MovieClip Frame 21
stop();
Symbol 764 Button
on (release) {
getURL ("http://www.girlgames1.com/?utm_source=partner&utm_medium=flashgames&utm_term=petcaring&utm_content=logo-ig&utm_campaign=brandedgames", "_blank");
}
Symbol 767 Button
on (release) {
gotoAndStop (211);
}