Frame 1
function preload() {
current = _root.getBytesLoaded();
total = _root.getBytesTotal();
_root.pctLoaded = Math.round((current / total) * 100);
_root.loadingtxt = (_root.pctLoaded + " ") + "%";
if (current >= total) {
clearInterval(myinterval);
_root.gotoAndStop("menuz");
}
}
stop();
Stage.showMenu = false;
myinterval = setInterval(preload, 1000);
Instance of Symbol 22 MovieClip in Frame 1
on (release) {
}
Frame 4
stop();
stopAllSounds();
Frame 7
_root.hand = "empty";
s = SharedObject.getLocal(_root.so);
if (s.data.tutorial != 1) {
_root.training = 1;
}
_root.xtras = 0;
_root.pix = 0;
_root.xtraBear = 0;
_root.xtraBalloons = 0;
_root.xtraWrapper = 0;
_root.xtraCandy = 0;
_root.orderTime = 20;
_root.customersLost = 0;
_root.bonus = 0;
_root.customers = 0;
_root.day = 1;
_root.task = "";
_root.flowerCount = 4;
stopAllSounds();
_root.clockCount = 7;
_root.starCounter = 0;
_root.star1 = 100;
_root.customers = 0;
_root.cash2 = 0;
_root.total = 0;
_root.cash = 0;
_root.flower1Count = 5;
_root.flower2Count = 5;
_root.flower3Count = 5;
_root.flower4Count = 5;
_root.flower5Count = 5;
_root.flower6Count = 5;
_root.flower7Count = 5;
_root.flower8Count = 5;
_root.customersLost = 0;
_root.wrapper = "empty";
_root.flower = "empty";
_root.pauses = false;
speed = 5;
walkCount = 0;
moving = false;
if (_root.spot == undefined) {
_root.spot = "spot1";
}
_root.barMovement = 4;
_root.flowerTime = 8;
_root.wrapTime = 8;
_root.blowTime = 8;
_root.candyTime = 8;
_root.sewTime = 8;
_root.balloonPoints = 0;
_root.wrappingPoints = 0;
_root.candyPoints = 0;
_root.bearPoints = 0;
_root.speedPoints = 0;
_root.balloonCost = 25;
_root.wrappingCost = 25;
_root.candyCost = 25;
_root.bearCost = 25;
_root.speedCost = 25;
_root.starCounter = 0;
_root.star1 = 100;
_root.customers = 0;
onEnterFrame = function () {
if (moving) {
if (_root.belle._x < _root[pitstop]._x) {
_root.belle._x = _root.belle._x + _root.speed;
_root.belle.gotoAndStop("right");
}
if (_root.belle._x > _root[pitstop]._x) {
_root.belle._x = _root.belle._x - _root.speed;
_root.belle.gotoAndStop("left");
}
if (_root.belle._y < _root[pitstop]._y) {
_root.belle._y = _root.belle._y + _root.speed;
_root.belle.gotoAndStop("down");
}
if (_root.belle._y > _root[pitstop]._y) {
_root.belle._y = _root.belle._y - _root.speed;
_root.belle.gotoAndStop("up");
}
if ((_root.belle._x == _root[pitstop]._x) && (_root.belle._y == _root[pitstop]._y)) {
_root.moving = false;
_root.belle.gotoAndStop(1);
_root.spot = _root.pitstop;
}
updateAfterEvent();
}
};
makeTask = function () {
if (_root.task1 == "") {
_root.task1 = _root.Xtask;
_root.Xtask = "";
} else if (_root.task1 != "") {
if (_root.task2 == "") {
_root.task2 = _root.Xtask;
_root.Xtask = "";
} else if (_root.task2 != "") {
if (_root.task3 == "") {
_root.task3 = _root.Xtask;
_root.Xtask = "";
} else if (_root.task3 != "") {
_root.task4 = _root.Xtask;
_root.Xtask = "";
}
}
}
};
Frame 10
stop();
s = SharedObject.getLocal(_root.so);
if (s.data.tutorial != 1) {
_root.lvl = 0;
}
if (_root.spot == undefined) {
_root.spot = "spot1";
}
_root.belle._x = _root[_root.spot]._x;
_root.belle._y = _root[_root.spot]._y;
_root.belle.gotoAndStop(1);
_root.good = false;
Instance of Symbol 221 MovieClip "candyStation2" in Frame 10
onClipEvent (load) {
if (_root.xtraCandy != 1) {
this._visible = false;
}
}
Instance of Symbol 231 MovieClip "balloonStation2" in Frame 10
onClipEvent (load) {
if (_root.xtraBalloons != 1) {
this._visible = false;
}
}
Instance of Symbol 237 MovieClip "wrappingTable2" in Frame 10
onClipEvent (load) {
if (_root.xtraWrapper != 1) {
this._visible = false;
}
}
Instance of Symbol 259 MovieClip "sewingTable2" in Frame 10
onClipEvent (load) {
if (_root.xtraBear != 1) {
this._visible = false;
}
}
Instance of Symbol 261 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 264 MovieClip "spot2" in Frame 10
/* no clip actions */
Instance of Symbol 264 MovieClip "spot7" in Frame 10
/* no clip actions */
Instance of Symbol 264 MovieClip "spot10" in Frame 10
/* no clip actions */
Instance of Symbol 305 MovieClip "order1" in Frame 10
/* no clip actions */
Instance of Symbol 264 MovieClip "spot7" in Frame 10
on (release) {
trace(_root.order1.slot1.flower.flower);
}
Instance of Symbol 306 MovieClip "order2" in Frame 10
onClipEvent (load) {
if (_root.lvl < 1) {
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 307 MovieClip "order3" in Frame 10
onClipEvent (load) {
if (_root.lvl < 2) {
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 308 MovieClip "order4" in Frame 10
onClipEvent (load) {
if (_root.lvl < 3) {
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 309 MovieClip "order5" in Frame 10
onClipEvent (load) {
if (_root.lvl < 4) {
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 310 MovieClip "order6" in Frame 10
onClipEvent (load) {
if (_root.lvl < 5) {
this.swapDepths(0);
this.removeMovieClip();
}
}
Instance of Symbol 317 MovieClip "sadCustomers" in Frame 10
onClipEvent (enterFrame) {
if (_root.customersLost == 0) {
gotoAndStop (1);
}
if (_root.customersLost != 0) {
gotoAndStop([_root.customersLost + 1]);
}
}
Instance of Symbol 319 MovieClip in Frame 10
/* no clip actions */
Instance of Symbol 405 MovieClip "tutorial" in Frame 10
onClipEvent (load) {
s = SharedObject.getLocal(_root.so);
if (s.data.tutorial != 1) {
_root.tutorials = true;
_root.pauses = true;
this.gotoAndStop(2);
} else {
_root.tutorials = false;
}
}
Frame 11
if (_root.cash >= _root.goal) {
_root.good = true;
if (_root.cash < _root.goal) {
_root.goodGreat.gotoAndStop(2);
}
_root.cash2 = _root.cash2 + _root.cash;
_root.total = _root.total + _root.cash;
_root.cash = 0;
_root.task = "";
_root.task2 = "";
} else {
_root.gotoAndStop("gameOver");
}
stop();
Instance of Symbol 159 MovieClip "bearBar" in Frame 11
onClipEvent (load) {
this.fill._width = _root.bearPoints;
}
Instance of Symbol 159 MovieClip "candyBar" in Frame 11
onClipEvent (load) {
this.fill._width = _root.candyPoints;
}
Instance of Symbol 159 MovieClip "wrappingBar" in Frame 11
onClipEvent (load) {
this.fill._width = _root.wrappingPoints;
}
Instance of Symbol 159 MovieClip "balloonBar" in Frame 11
onClipEvent (load) {
this.fill._width = _root.balloonPoints;
}
Instance of Symbol 443 MovieClip "unlock" in Frame 11
onClipEvent (load) {
if ((_root.good == true) && (_root.xtras < 4)) {
_root.pix = 1;
this._visible = true;
this.continueBtn._visible = false;
} else {
this._visible = false;
}
}
Symbol 14 Button
on (release) {
getURL ("http://www.didigames.com/", "_blank");
}
Symbol 15 MovieClip Frame 1
Symbol 37 MovieClip Frame 1
Symbol 45 Button
on (release) {
sc = SharedObject.getLocal(_root.so);
sc.data.sc1 = 1;
sc.flush();
_root.menuLoopMc.gotoAndStop(1);
nextFrame();
}
Symbol 48 Button
on (release) {
sc = SharedObject.getLocal(_root.so);
sc.data.sc1 = 0;
sc.flush();
_root.soundOK = true;
_root.menuLoopMc.gotoAndStop(2);
_root.gameLoopMc.gotoAndStop(2);
_root.gameLoops();
prevFrame();
}
Symbol 49 MovieClip Frame 1
sc = SharedObject.getLocal(_root.so);
if (sc.data.sc1 != 1) {
_root.soundOK = true;
_root.menuLoopMc.nextFrame();
stop();
} else if (sc.data.sc1 == 1) {
nextFrame();
}
Symbol 49 MovieClip Frame 2
stopAllSounds();
_root.soundOK = false;
Symbol 51 MovieClip Frame 2
if (_root.soundOK == true) {
nextFrame();
} else {
stop();
}
Symbol 59 Button
on (release) {
gotoAndStop ("ask");
}
Symbol 62 Button
on (release) {
s = SharedObject.getLocal(_root.so);
s.clear();
_root.pauses = false;
_root.gotoAndPlay("run");
}
Instance of Symbol 69 MovieClip in Symbol 73 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 72 MovieClip in Symbol 73 MovieClip Frame 1
/* no clip actions */
Symbol 78 Button
on (release) {
_root.lvl = 1;
_root.goal = 20;
_root.orderTime = 20;
_root.gotoAndPlay("run");
}
Symbol 81 Button
on (release) {
_root.orderTime = 15;
_root.lvl = 2;
_root.goal = 40;
_root.gotoAndPlay("run");
}
Symbol 83 Button
on (release) {
_root.orderTime = 11;
_root.lvl = 3;
_root.goal = 50;
_root.gotoAndPlay("run");
}
Instance of Symbol 102 MovieClip "flowers1" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.flower1Count);
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot7")) {
_root.pitstop = "spot7";
_root.moving = true;
_root.task = "getFlower1";
} else if (_root.spot == "spot7") {
_root.task = "getFlower1";
}
}
Instance of Symbol 107 MovieClip "flowers2" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.flower2Count);
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot9")) {
_root.pitstop = "spot9";
_root.moving = true;
_root.task = "getFlower2";
} else if (_root.spot == "spot9") {
_root.task = "getFlower2";
}
}
Instance of Symbol 112 MovieClip "flowers3" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.flower3Count);
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot10")) {
_root.pitstop = "spot10";
_root.moving = true;
_root.task = "getFlower3";
} else if (_root.spot == "spot10") {
_root.task = "getFlower3";
}
}
Instance of Symbol 117 MovieClip "flowers4" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.flower4Count);
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot11")) {
_root.pitstop = "spot11";
_root.moving = true;
_root.task = "getFlower4";
} else if (_root.spot == "spot11") {
_root.task = "getFlower4";
}
}
Instance of Symbol 123 MovieClip "flowers5" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
if (_root.flowerCount < 5) {
this._visible = false;
}
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot12")) {
_root.pitstop = "spot12";
_root.moving = true;
_root.task = "getFlower5";
} else if (_root.spot == "spot12") {
_root.task = "getFlower5";
}
}
Instance of Symbol 128 MovieClip "flowers6" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
if (_root.flowerCount < 6) {
this._visible = false;
}
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot13")) {
_root.pitstop = "spot13";
_root.moving = true;
_root.task = "getFlower6";
} else if (_root.spot == "spot13") {
_root.task = "getFlower6";
}
}
Instance of Symbol 133 MovieClip "flowers7" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
if (_root.flowerCount < 7) {
this._visible = false;
}
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot14")) {
_root.pitstop = "spot14";
_root.moving = true;
_root.task = "getFlower7";
} else if (_root.spot == "spot14") {
_root.task = "getFlower7";
}
}
Instance of Symbol 138 MovieClip "flowers8" in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
if (_root.flowerCount < 8) {
this._visible = false;
}
}
on (release) {
if ((_root.moving == false) && (_root.spot != "spot2")) {
_root.pitstop = "spot2";
_root.moving = true;
_root.task = "getFlower8";
} else if (_root.spot == "spot2") {
_root.task = "getFlower8";
}
}
Symbol 152 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "blowBalloon1";
} else if (_root.spot == "spot3") {
_root.task = "blowBalloon1";
}
}
Symbol 153 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "blowBalloon2";
} else if (_root.spot == "spot3") {
_root.task = "blowBalloon2";
}
}
Symbol 154 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "blowBalloon3";
} else if (_root.spot == "spot3") {
_root.task = "blowBalloon3";
}
}
Symbol 160 MovieClip Frame 1
stop();
Symbol 161 Button
on (release) {
_root.pitstop = "spot3";
_root.moving = true;
}
Symbol 162 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 1
stop();
Symbol 166 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "getBalloon1";
} else if (_root.spot == "spot3") {
_root.task = "getBalloon1";
}
}
Symbol 169 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "getBalloon2";
} else if (_root.spot == "spot3") {
_root.task = "getBalloon2";
}
}
Symbol 172 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "getBalloon3";
} else if (_root.spot == "spot3") {
_root.task = "getBalloon3";
}
}
Symbol 173 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 173 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.blowTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this._parent.heart.nextFrame();
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("heartX");
}
} else {
this.c++;
}
}
}
Instance of Symbol 159 MovieClip "timeBar" in Symbol 173 MovieClip Frame 3
onClipEvent (load) {
this.c = 0;
this.t = _root.blowTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this._parent.heart.nextFrame();
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("pinkX");
}
} else {
this.c++;
}
}
}
Instance of Symbol 159 MovieClip "timeBar" in Symbol 173 MovieClip Frame 4
onClipEvent (load) {
this.c = 0;
this.t = _root.blowTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this._parent.heart.nextFrame();
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("blueX");
}
} else {
this.c++;
}
}
}
Symbol 173 MovieClip Frame 7
if ((_root.tuto == 2) && (_root.training == 1)) {
_root.tutorial.gotoAndStop("b3");
}
Symbol 181 MovieClip Frame 26
this._parent.gotoAndStop(1);
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 2
_root.cash = _root.cash + 5;
if (_root.tuto == 3) {
_root.tutorial.gotoAndStop("b14");
}
Symbol 191 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot4")) {
_root.pitstop = "spot4";
_root.moving = true;
_root.task = "makeCandy";
this.candy = "dark";
} else if (_root.spot == "spot4") {
_root.task = "makeCandy";
this.candy = "dark";
}
}
Symbol 192 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot4")) {
_root.pitstop = "spot4";
_root.moving = true;
_root.task = "makeCandy";
this.candy = "white";
} else if (_root.spot == "spot4") {
_root.task = "makeCandy";
this.candy = "white";
}
}
Symbol 193 Button
on (release) {
_root.pitstop = "spot4";
_root.moving = true;
}
Symbol 196 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot4")) {
_root.pitstop = "spot4";
_root.moving = true;
_root.task = "getCandy";
} else if (_root.spot == "spot4") {
_root.task = "getCandy";
}
}
Symbol 202 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 202 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.candyTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("done");
}
} else {
this.c++;
}
}
}
Instance of Symbol 201 MovieClip in Symbol 202 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(this._parent.candy);
}
Symbol 209 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "wrapFlower1";
this.flower = _root.hand;
this.wrapper = "pink";
} else if (_root.spot == "spot5") {
_root.task = "wrapFlower1";
this.flower = _root.hand;
this.wrapper = "pink";
}
}
Symbol 210 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "wrapFlower1";
this.flower = _root.hand;
this.wrapper = "blue";
} else if (_root.spot == "spot5") {
_root.task = "wrapFlower1";
this.flower = _root.hand;
this.wrapper = "blue";
}
}
Symbol 211 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "wrapFlower1";
this.flower = _root.hand;
this.wrapper = "purple";
} else if (_root.spot == "spot5") {
_root.task = "wrapFlower1";
_root.moving = true;
_root.task = "wrapFlower1";
}
}
Symbol 212 Button
on (release) {
_root.pitstop = "spot5";
_root.moving = true;
}
Instance of Symbol 213 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.flower);
if (_root.flower == "empty") {
this._visible = false;
}
}
Instance of Symbol 214 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.wrapper);
if (_root.wrapper == "empty") {
this._visible = false;
}
}
Symbol 216 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "getWrapped";
} else if (_root.spot == "spot5") {
_root.task = "getWrapped";
}
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 2
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 217 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.wrapTime;
trace(this._parent.flower);
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
_root.flower = this._parent.flower;
_root.wrapper = this._parent.wrapper;
this._parent.gotoAndStop("wrapped");
}
} else {
this.c++;
}
}
}
Symbol 218 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot4")) {
_root.pitstop = "spot4";
_root.moving = true;
_root.task = "makeCandy2";
this.candy = "dark";
} else if (_root.spot == "spot4") {
_root.task = "makeCandy2";
this.candy = "dark";
}
}
Symbol 219 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot4")) {
_root.pitstop = "spot4";
_root.moving = true;
_root.task = "makeCandy2";
this.candy = "white";
} else if (_root.spot == "spot4") {
_root.task = "makeCandy2";
this.candy = "white";
}
}
Symbol 220 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot4")) {
_root.pitstop = "spot4";
_root.moving = true;
_root.task = "getCandy2";
} else if (_root.spot == "spot4") {
_root.task = "getCandy2";
}
}
Symbol 221 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 221 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.candyTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("done");
}
} else {
this.c++;
}
}
}
Instance of Symbol 201 MovieClip in Symbol 221 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(this._parent.candy);
_root.candy = this._parent.candy;
}
Symbol 225 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "blowBalloon12";
} else if (_root.spot == "spot3") {
_root.task = "blowBalloon12";
}
}
Symbol 226 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "blowBalloon22";
} else if (_root.spot == "spot3") {
_root.task = "blowBalloon22";
}
}
Symbol 227 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "blowBalloon32";
} else if (_root.spot == "spot3") {
_root.task = "blowBalloon32";
}
}
Symbol 228 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "getBalloon12";
} else if (_root.spot == "spot3") {
_root.task = "getBalloon12";
}
}
Symbol 229 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "getBalloon22";
} else if (_root.spot == "spot3") {
_root.task = "getBalloon22";
}
}
Symbol 230 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot3")) {
_root.pitstop = "spot3";
_root.moving = true;
_root.task = "getBalloon32";
} else if (_root.spot == "spot3") {
_root.task = "getBalloon32";
}
}
Symbol 231 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 231 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.blowTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this._parent.heart.nextFrame();
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("heartX");
}
} else {
this.c++;
}
}
}
Instance of Symbol 159 MovieClip "timeBar" in Symbol 231 MovieClip Frame 3
onClipEvent (load) {
this.c = 0;
this.t = _root.blowTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this._parent.heart.nextFrame();
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("pinkX");
}
} else {
this.c++;
}
}
}
Instance of Symbol 159 MovieClip "timeBar" in Symbol 231 MovieClip Frame 4
onClipEvent (load) {
this.c = 0;
this.t = _root.blowTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this._parent.heart.nextFrame();
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndStop("blueX");
}
} else {
this.c++;
}
}
}
Symbol 231 MovieClip Frame 7
if ((_root.tuto == 2) && (_root.training == 1)) {
_root.tutorial.gotoAndStop("b3");
}
Symbol 232 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "wrapFlower12";
this.flower = _root.hand;
this.wrapper = "pink";
} else if (_root.spot == "spot5") {
_root.task = "wrapFlower12";
this.flower = _root.hand;
this.wrapper = "pink";
}
}
Symbol 233 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "wrapFlower12";
this.flower = _root.hand;
this.wrapper = "blue";
} else if (_root.spot == "spot5") {
_root.task = "wrapFlower12";
this.flower = _root.hand;
this.wrapper = "blue";
}
}
Symbol 234 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "wrapFlower12";
this.flower = _root.hand;
this.wrapper = "purple";
} else if (_root.spot == "spot5") {
_root.task = "wrapFlower12";
_root.moving = true;
this.wrapper = "purple";
}
}
Symbol 236 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot5")) {
_root.pitstop = "spot5";
_root.moving = true;
_root.task = "getWrapped2";
} else if (_root.spot == "spot5") {
_root.task = "getWrapped2";
}
}
Symbol 237 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 2
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 237 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.wrapTime;
trace(this._parent.flower);
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
_root.flower = this._parent.flower;
_root.wrapper = this._parent.wrapper;
this._parent.gotoAndStop("wrapped");
}
} else {
this.c++;
}
}
}
Instance of Symbol 235 MovieClip in Symbol 237 MovieClip Frame 3
onClipEvent (load) {
this.flower.gotoAndStop(this._parent.flower);
this.wrapper.gotoAndStop(this._parent.wrapper);
}
Symbol 247 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot1")) {
_root.pitstop = "spot1";
_root.moving = true;
_root.task = "makeBear";
this.bear = "blue";
} else if (_root.spot == "spot1") {
_root.task = "makeBear";
this.bear = "blue";
}
}
Symbol 248 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot1")) {
_root.pitstop = "spot1";
_root.moving = true;
_root.task = "makeBear";
this.bear = "brown";
} else if (_root.spot == "spot1") {
_root.task = "makeBear";
this.bear = "brown";
}
}
Symbol 249 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot1")) {
_root.pitstop = "spot1";
_root.moving = true;
_root.task = "makeBear";
this.bear = "pink";
} else if (_root.spot == "spot1") {
_root.task = "makeBear";
this.bear = "pink";
}
}
Symbol 250 Button
on (release) {
_root.pitstop = "spot1";
_root.moving = true;
}
Symbol 251 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot1")) {
_root.pitstop = "spot1";
_root.moving = true;
_root.task = "getBear";
_root.bear = this.bear;
} else if (_root.spot == "spot1") {
_root.task = "getBear";
_root.bear = this.bear;
}
}
Symbol 253 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 253 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.sewTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
_root.bear = this._parent.bear;
this._parent.gotoAndStop("done");
}
} else {
this.c++;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 253 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(this._parent.bear);
_root.bear = this._parent.bear;
}
Symbol 255 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot20")) {
_root.pitstop = "spot20";
_root.moving = true;
_root.task = "makeBear2";
this.bear = "blue";
} else if (_root.spot == "spot20") {
_root.task = "makeBear2";
this.bear = "blue";
}
}
Symbol 256 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot20")) {
_root.pitstop = "spot20";
_root.moving = true;
_root.task = "makeBear2";
this.bear = "brown";
} else if (_root.spot == "spot20") {
_root.task = "makeBear2";
this.bear = "brown";
}
}
Symbol 257 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot20")) {
_root.pitstop = "spot20";
_root.moving = true;
_root.task = "makeBear2";
this.bear = "pink";
} else if (_root.spot == "spot20") {
_root.task = "makeBear2";
this.bear = "pink";
}
}
Symbol 258 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot20")) {
_root.pitstop = "spot20";
_root.moving = true;
_root.task = "getBear2";
} else if (_root.spot == "spot20") {
_root.task = "getBear2";
}
}
Symbol 259 MovieClip Frame 1
stop();
Instance of Symbol 159 MovieClip "timeBar" in Symbol 259 MovieClip Frame 2
onClipEvent (load) {
this.c = 0;
this.t = _root.sewTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + _root.barMovement;
if (this.fill._width >= 120) {
this.fill._width = 5;
_root.bear = this._parent.bear;
this._parent.gotoAndStop("done");
}
} else {
this.c++;
}
}
}
Instance of Symbol 252 MovieClip in Symbol 259 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(this._parent.bear);
}
Symbol 262 Button
on (release) {
if ((_root.moving == false) && (_root.spot != "spot8")) {
_root.task = "trash";
_root.pitstop = "spot8";
_root.moving = true;
} else if (_root.spot == "spot8") {
_root.task = "trash";
}
}
Instance of Symbol 201 MovieClip in Symbol 266 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(_root.candy);
}
Instance of Symbol 252 MovieClip in Symbol 266 MovieClip Frame 6
onClipEvent (load) {
gotoAndStop(_root.bear);
}
Symbol 267 MovieClip Frame 1
onEnterFrame = function () {
this.hand.gotoAndStop(_root.hand);
};
Instance of Symbol 266 MovieClip "hand" in Symbol 267 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.hand);
}
Instance of Symbol 266 MovieClip "hand" in Symbol 276 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.hand);
}
Instance of Symbol 276 MovieClip in Symbol 280 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.plate == true) {
this.gotoAndStop(2);
}
if (_root.plate == false) {
this.gotoAndStop(1);
}
}
Instance of Symbol 266 MovieClip "hand" in Symbol 281 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.hand);
}
Instance of Symbol 276 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.plate == true) {
this.gotoAndStop(2);
}
if (_root.plate == false) {
this.gotoAndStop(1);
}
}
Symbol 289 MovieClip Frame 1
_root.dir = "null";
Symbol 289 MovieClip Frame 2
_root.dir = "right";
Symbol 289 MovieClip Frame 3
_root.dir = "left";
Symbol 289 MovieClip Frame 4
_root.dir = "down";
Symbol 289 MovieClip Frame 5
_root.dir = "up";
Symbol 291 MovieClip Frame 1
play();
Symbol 291 MovieClip Frame 3
play();
Symbol 291 MovieClip Frame 5
if ((_root.task == "trash") && (_root.moving == false)) {
if (_root.spot == "spot8") {
_root.task = "";
_root.hand = "empty";
}
}
if ((_root.task == "getFlower1") && (_root.moving == false)) {
if ((_root.spot == "spot7") && (_root.hand == "empty")) {
if (_root.tuto == 4) {
_root.tutorial.gotoAndStop("b4");
}
_root.hand = "flower1";
_root.task = "";
}
}
if ((_root.task == "getFlower2") && (_root.moving == false)) {
if ((_root.spot == "spot9") && (_root.hand == "empty")) {
_root.hand = "flower2";
_root.task = "";
}
}
if ((_root.task == "getFlower3") && (_root.moving == false)) {
if ((_root.spot == "spot10") && (_root.hand == "empty")) {
_root.hand = "flower3";
_root.flower3Count = _root.flower3Count - 1;
_root.task = "";
}
}
if ((_root.task == "getFlower4") && (_root.moving == false)) {
if ((_root.spot == "spot11") && (_root.hand == "empty")) {
_root.task = "";
_root.hand = "flower4";
}
}
if ((_root.task == "getFlower5") && (_root.moving == false)) {
if ((_root.spot == "spot12") && (_root.hand == "empty")) {
_root.task = "";
_root.hand = "flower5";
}
}
if ((_root.task == "getFlower6") && (_root.moving == false)) {
if ((_root.spot == "spot13") && (_root.hand == "empty")) {
_root.task = "";
_root.hand = "flower6";
_root.task = "";
}
}
if ((_root.task == "getFlower7") && (_root.moving == false)) {
if ((_root.spot == "spot14") && (_root.hand == "empty")) {
_root.task = "";
_root.hand = "flower7";
}
}
if ((_root.task == "getFlower8") && (_root.moving == false)) {
if ((_root.spot == "spot2") && (_root.hand == "empty")) {
_root.task = "";
_root.hand = "flower8";
}
}
if ((_root.task == "wrapFlower1") && (_root.moving == false)) {
if (((((((((_root.spot == "spot5") && (_root.hand == "flower1")) || (_root.hand == "flower2")) || (_root.hand == "flower3")) || (_root.hand == "flower4")) || (_root.hand == "flower5")) || (_root.hand == "flower6")) || (_root.hand == "flower7")) || (_root.hand == "flower8")) {
if (_root.tuto == 5) {
_root.tutorial.gotoAndStop("b5");
}
_root.hand = "empty";
_root.task = "";
_root.wrappingTable.gotoAndStop("wrap");
}
}
if (((_root.task == "getWrapped") && (_root.moving == false)) && (_root.hand == "empty")) {
if (_root.spot == "spot5") {
_root.task = "";
_root.flower = _root.wrappingTable.flower;
_root.wrapper = _root.wrappingTable.wrapper;
_root.wrappingTable.gotoAndStop(1);
_root.hand = "flowerDone";
}
}
if ((_root.task == "wrapFlower12") && (_root.moving == false)) {
if (((((((((_root.spot == "spot5") && (_root.hand == "flower1")) || (_root.hand == "flower2")) || (_root.hand == "flower3")) || (_root.hand == "flower4")) || (_root.hand == "flower5")) || (_root.hand == "flower6")) || (_root.hand == "flower7")) || (_root.hand == "flower8")) {
_root.hand = "empty";
_root.task = "";
_root.wrappingTable2.gotoAndStop("wrap");
}
}
if (((_root.task == "getWrapped2") && (_root.moving == false)) && (_root.hand == "empty")) {
if (_root.spot == "spot5") {
_root.task = "";
_root.flower = _root.wrappingTable2.flower;
_root.wrapper = _root.wrappingTable2.wrapper;
_root.wrappingTable2.gotoAndStop(1);
_root.hand = "flowerDone";
}
}
if (((_root.task == "blowBalloon1") && (_root.moving == false)) && (_root.spot == "spot3")) {
_root.task = "";
_root.balloonStation.gotoAndStop("heart");
}
if ((_root.task == "getBalloon1") && (_root.moving == false)) {
if ((_root.spot == "spot3") && (_root.hand == "empty")) {
_root.hand = "heartBalloon";
_root.task = "";
_root.balloonStation.gotoAndStop(1);
}
}
if (((_root.task == "blowBalloon12") && (_root.moving == false)) && (_root.spot == "spot3")) {
_root.task = "";
_root.balloonStation2.gotoAndStop("heart");
}
if ((_root.task == "getBalloon12") && (_root.moving == false)) {
if ((_root.spot == "spot3") && (_root.hand == "empty")) {
_root.hand = "heartBalloon";
_root.task = "";
_root.balloonStation2.gotoAndStop(1);
}
}
if (((_root.task == "blowBalloon2") && (_root.moving == false)) && (_root.spot == "spot3")) {
_root.task = "";
_root.balloonStation.gotoAndStop("pink");
}
if ((_root.task == "getBalloon2") && (_root.moving == false)) {
if ((_root.spot == "spot3") && (_root.hand == "empty")) {
_root.hand = "pinkBalloon";
_root.task = "";
_root.balloonStation.gotoAndStop(1);
}
}
if (((_root.task == "blowBalloon22") && (_root.moving == false)) && (_root.spot == "spot3")) {
_root.task = "";
_root.balloonStation2.gotoAndStop("pink");
}
if ((_root.task == "getBalloon22") && (_root.moving == false)) {
if ((_root.spot == "spot3") && (_root.hand == "empty")) {
_root.hand = "pinkBalloon";
_root.task = "";
_root.balloonStation2.gotoAndStop(1);
}
}
if (((_root.task == "blowBalloon3") && (_root.moving == false)) && (_root.spot == "spot3")) {
if ((_root.training == 1) && (_root.tuto == 1)) {
_root.tutorial.gotoAndStop("b2");
}
_root.task = "";
_root.balloonStation.gotoAndStop("blue");
}
if ((_root.task == "getBalloon3") && (_root.moving == false)) {
if ((_root.spot == "spot3") && (_root.hand == "empty")) {
_root.hand = "blueBalloon";
_root.task = "";
_root.balloonStation.gotoAndStop(1);
}
}
if (((_root.task == "blowBalloon32") && (_root.moving == false)) && (_root.spot == "spot3")) {
_root.task = "";
_root.balloonStation2.gotoAndStop("blue");
}
if ((_root.task == "getBalloon32") && (_root.moving == false)) {
if ((_root.spot == "spot3") && (_root.hand == "empty")) {
_root.hand = "blueBalloon";
_root.task = "";
_root.balloonStation2.gotoAndStop(1);
}
}
if ((_root.task == "makeBear2") && (_root.moving == false)) {
if (_root.spot == "spot20") {
_root.task = "";
_root.sewingTable2.gotoAndStop("sew");
}
}
if ((_root.task == "getBear2") && (_root.moving == false)) {
if ((_root.spot == "spot20") && (_root.hand == "empty")) {
_root.hand = "bearDone";
_root.task = "";
_root.bear = _root.sewingTable2.bear;
_root.sewingTable2.gotoAndStop(1);
}
}
if ((_root.task == "makeBear") && (_root.moving == false)) {
if (_root.spot == "spot1") {
_root.task = "";
_root.sewingTable.gotoAndStop("sew");
}
}
if ((_root.task == "getBear") && (_root.moving == false)) {
if ((_root.spot == "spot1") && (_root.hand == "empty")) {
_root.hand = "bearDone";
_root.task = "";
_root.sewingTable.gotoAndStop(1);
}
}
if ((_root.task == "makeCandy") && (_root.moving == false)) {
if (_root.spot == "spot4") {
_root.task = "";
_root.candyStation.gotoAndStop("make");
}
}
if ((_root.task == "getCandy") && (_root.moving == false)) {
if ((_root.spot == "spot4") && (_root.hand == "empty")) {
_root.candy = _root.candyStation.candy;
_root.hand = "candyDone";
_root.task = "";
_root.candyStation.gotoAndStop(1);
}
}
if ((_root.task == "makeCandy2") && (_root.moving == false)) {
if (_root.spot == "spot4") {
_root.task = "";
_root.candyStation2.gotoAndStop("make");
}
}
if ((_root.task == "getCandy2") && (_root.moving == false)) {
if ((_root.spot == "spot4") && (_root.hand == "empty")) {
_root.hand = "candyDone";
_root.candy = _root.candyStation2.candy;
_root.task = "";
_root.candyStation2.gotoAndStop(1);
}
}
if ((_root.task == "deliverFlower") && (_root.moving == false)) {
if (_root.spot == "spot6") {
if (_root.tuto == 6) {
_root.tutorial.gotoAndStop("b6");
}
if ((_root["order" + _root.orderNo].slot.flower.flower == _root.flower) && (_root["order" + _root.orderNo].slot.wrapper.wrapper == _root.wrapper)) {
_root["order" + _root.orderNo].gotoAndPlay("happy");
_root.checkout.gotoAndStop(2);
} else {
_root["order" + _root.orderNo].gotoAndPlay("sad");
}
_root.task = "";
_root.hand = "empty";
}
}
if ((_root.task == "deliverBalloon") && (_root.moving == false)) {
if (_root.spot == "spot6") {
if (_root["order" + _root.orderNo].slot.balloon.balloon == _root.hand) {
_root["order" + _root.orderNo].gotoAndPlay("happy");
_root.checkout.gotoAndStop(2);
} else {
_root["order" + _root.orderNo].gotoAndPlay("sad");
}
_root.task = "";
_root.hand = "empty";
}
}
if ((_root.task == "deliverCandy") && (_root.moving == false)) {
if (_root.spot == "spot6") {
if (_root["order" + _root.orderNo].slot.candy.candy == _root.candy) {
_root["order" + _root.orderNo].gotoAndPlay("happy");
_root.checkout.gotoAndStop(2);
} else {
_root["order" + _root.orderNo].gotoAndPlay("sad");
}
_root.task = "";
_root.hand = "empty";
}
}
if ((_root.task == "deliverBear") && (_root.moving == false)) {
if (_root.spot == "spot6") {
if (_root["order" + _root.orderNo].slot.bear.bear == _root.bear) {
_root["order" + _root.orderNo].gotoAndPlay("happy");
_root.checkout.gotoAndStop(2);
} else {
_root["order" + _root.orderNo].gotoAndPlay("sad");
}
_root.task = "";
_root.hand = "empty";
}
}
Symbol 298 MovieClip Frame 1
Instance of Symbol 213 MovieClip "flower" in Symbol 298 MovieClip Frame 1
onClipEvent (load) {
if (_root.training == 2) {
this.gotoAndStop("flower1");
this.flower = "flower1";
} else {
r = random(_root.flowerCount) + 1;
this.gotoAndStop(r);
this.flower = "flower" + r;
}
}
Instance of Symbol 214 MovieClip "wrapper" in Symbol 298 MovieClip Frame 1
onClipEvent (load) {
if (_root.training == 2) {
this.gotoAndStop("pink");
this.wrapper = "pink";
} else {
r = random(3) + 1;
this.gotoAndStop(r);
if (r == 1) {
this.wrapper = "pink";
} else if (r == 2) {
this.wrapper = "blue";
} else if (r == 3) {
this.wrapper = "purple";
}
}
}
Instance of Symbol 297 MovieClip "balloon" in Symbol 298 MovieClip Frame 2
onClipEvent (load) {
if (_root.training == 1) {
this.gotoAndStop(1);
this.balloon = "blueBalloon";
} else {
r = random(3) + 1;
this.gotoAndStop(r);
if (r == 2) {
this.balloon = "pinkBalloon";
} else if (r == 1) {
this.balloon = "blueBalloon";
} else if (r == 3) {
this.balloon = "heartBalloon";
}
}
}
Instance of Symbol 201 MovieClip "candy" in Symbol 298 MovieClip Frame 3
onClipEvent (load) {
r = random(2) + 1;
this.gotoAndStop(r);
if (r == 1) {
this.candy = "dark";
} else if (r == 2) {
this.candy = "white";
}
}
Instance of Symbol 252 MovieClip "bear" in Symbol 298 MovieClip Frame 4
onClipEvent (load) {
r = random(3) + 1;
this.gotoAndStop(r);
if (r == 1) {
this.bear = "brown";
} else if (r == 2) {
this.bear = "blue";
} else if (r == 3) {
this.bear = "pink";
}
}
Symbol 305 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "timeBar" in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
this.c = 0;
this.t = _root.orderTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + 1;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndPlay("sad");
}
} else {
this.c++;
}
}
}
Instance of Symbol 298 MovieClip "slot" in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
if (_root.training == 1) {
this.gotoAndStop("balloon");
} else if (_root.training == 2) {
this.gotoAndStop("flower");
} else {
ran = random(4) + 1;
trace(ran);
if (ran == 1) {
this.gotoAndStop("flower");
}
if (ran == 2) {
this.gotoAndStop("balloon");
}
if (ran == 3) {
this.gotoAndStop("candy");
}
if (ran == 4) {
this.gotoAndStop("bear");
}
}
}
on (release) {
_root.orderNo = 1;
if ((_root.moving == false) && (_root.spot != "spot6")) {
_root.pitstop = "spot6";
_root.moving = true;
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
} else if ((_root.moving == false) && (_root.spot == "spot6")) {
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverHeartBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBlueBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverpinkBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
}
}
Symbol 305 MovieClip Frame 2
play();
_root.customers++;
if (_root.training == 1) {
_root.training = 2;
}
Symbol 305 MovieClip Frame 49
gotoAndStop (1);
Symbol 305 MovieClip Frame 50
play();
_root.customersLost++;
_root.sadCustomers.nextFrame();
Symbol 305 MovieClip Frame 99
gotoAndStop (1);
Symbol 306 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "timeBar" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
this.c = 0;
this.t = _root.orderTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + 1;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndPlay("sad");
}
} else {
this.c++;
}
}
}
Instance of Symbol 298 MovieClip "slot" in Symbol 306 MovieClip Frame 1
onClipEvent (load) {
ran = random(4) + 1;
trace(ran);
if (ran == 1) {
this.gotoAndStop("flower");
}
if (ran == 2) {
this.gotoAndStop("balloon");
}
if (ran == 3) {
this.gotoAndStop("candy");
}
if (ran == 4) {
this.gotoAndStop("bear");
}
}
on (release) {
_root.orderNo = 2;
if ((_root.moving == false) && (_root.spot != "spot6")) {
_root.pitstop = "spot6";
_root.moving = true;
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
} else if ((_root.moving == false) && (_root.spot == "a")) {
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverHeartBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBlueBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverpinkBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
}
}
Symbol 306 MovieClip Frame 2
play();
_root.customers++;
Symbol 306 MovieClip Frame 49
gotoAndStop (1);
Symbol 306 MovieClip Frame 50
play();
_root.customersLost++;
_root.sadCustomers.nextFrame();
Symbol 306 MovieClip Frame 99
gotoAndStop (1);
Symbol 307 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "timeBar" in Symbol 307 MovieClip Frame 1
onClipEvent (load) {
this.c = 0;
this.t = _root.orderTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + 1;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndPlay("sad");
}
} else {
this.c++;
}
}
}
Instance of Symbol 298 MovieClip "slot" in Symbol 307 MovieClip Frame 1
onClipEvent (load) {
ran = random(4) + 1;
trace(ran);
if (ran == 1) {
this.gotoAndStop("flower");
}
if (ran == 2) {
this.gotoAndStop("balloon");
}
if (ran == 3) {
this.gotoAndStop("candy");
}
if (ran == 4) {
this.gotoAndStop("bear");
}
}
on (release) {
_root.orderNo = 3;
if ((_root.moving == false) && (_root.spot != "spot6")) {
_root.pitstop = "spot6";
_root.moving = true;
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
} else if ((_root.moving == false) && (_root.spot == "a")) {
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverHeartBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBlueBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverpinkBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
}
}
Symbol 307 MovieClip Frame 2
play();
_root.customers++;
Symbol 307 MovieClip Frame 49
gotoAndStop (1);
Symbol 307 MovieClip Frame 50
play();
_root.customersLost++;
_root.sadCustomers.nextFrame();
Symbol 307 MovieClip Frame 99
gotoAndStop (1);
Symbol 308 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "timeBar" in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
this.c = 0;
this.t = _root.orderTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + 1;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndPlay("sad");
}
} else {
this.c++;
}
}
}
Instance of Symbol 298 MovieClip "slot" in Symbol 308 MovieClip Frame 1
onClipEvent (load) {
ran = random(4) + 1;
trace(ran);
if (ran == 1) {
this.gotoAndStop("flower");
}
if (ran == 2) {
this.gotoAndStop("balloon");
}
if (ran == 3) {
this.gotoAndStop("candy");
}
if (ran == 4) {
this.gotoAndStop("bear");
}
}
on (release) {
_root.orderNo = 4;
if ((_root.moving == false) && (_root.spot != "spot6")) {
_root.pitstop = "spot6";
_root.moving = true;
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
} else if ((_root.moving == false) && (_root.spot == "a")) {
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverHeartBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBlueBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverpinkBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
}
}
Symbol 308 MovieClip Frame 2
play();
_root.customers++;
Symbol 308 MovieClip Frame 49
gotoAndStop (1);
Symbol 308 MovieClip Frame 50
play();
_root.customersLost++;
_root.sadCustomers.nextFrame();
Symbol 308 MovieClip Frame 99
gotoAndStop (1);
Symbol 309 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "timeBar" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
this.c = 0;
this.t = _root.orderTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + 1;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndPlay("sad");
}
} else {
this.c++;
}
}
}
Instance of Symbol 298 MovieClip "slot" in Symbol 309 MovieClip Frame 1
onClipEvent (load) {
ran = random(4) + 1;
trace(ran);
if (ran == 1) {
this.gotoAndStop("flower");
}
if (ran == 2) {
this.gotoAndStop("balloon");
}
if (ran == 3) {
this.gotoAndStop("candy");
}
if (ran == 4) {
this.gotoAndStop("bear");
}
}
on (release) {
_root.orderNo = 5;
if ((_root.moving == false) && (_root.spot != "spot6")) {
_root.pitstop = "spot6";
_root.moving = true;
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
} else if ((_root.moving == false) && (_root.spot == "a")) {
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverHeartBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBlueBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverpinkBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
}
}
Symbol 309 MovieClip Frame 2
play();
_root.customers++;
Symbol 309 MovieClip Frame 49
gotoAndStop (1);
Symbol 309 MovieClip Frame 50
play();
_root.customersLost++;
_root.sadCustomers.nextFrame();
Symbol 309 MovieClip Frame 99
gotoAndStop (1);
Symbol 310 MovieClip Frame 1
stop();
Instance of Symbol 295 MovieClip "timeBar" in Symbol 310 MovieClip Frame 1
onClipEvent (load) {
this.c = 0;
this.t = _root.orderTime;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this.c >= this.t) {
this.c = 0;
this.fill._width = this.fill._width + 1;
if (this.fill._width >= 120) {
this.fill._width = 5;
this._parent.gotoAndPlay("sad");
}
} else {
this.c++;
}
}
}
Instance of Symbol 298 MovieClip "slot" in Symbol 310 MovieClip Frame 1
onClipEvent (load) {
ran = random(4) + 1;
trace(ran);
if (ran == 1) {
this.gotoAndStop("flower");
}
if (ran == 2) {
this.gotoAndStop("balloon");
}
if (ran == 3) {
this.gotoAndStop("candy");
}
if (ran == 4) {
this.gotoAndStop("bear");
}
}
on (release) {
_root.orderNo = 6;
if ((_root.moving == false) && (_root.spot != "spot6")) {
_root.pitstop = "spot6";
_root.moving = true;
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
} else if ((_root.moving == false) && (_root.spot == "a")) {
if (_root.hand == "flowerDone") {
_root.task = "deliverFlower";
} else if (_root.hand == "heartBalloon") {
_root.task = "deliverHeartBalloon";
} else if (_root.hand == "blueBalloon") {
_root.task = "deliverBlueBalloon";
} else if (_root.hand == "pinkBalloon") {
_root.task = "deliverpinkBalloon";
} else if (_root.hand == "candyDone") {
_root.task = "deliverCandy";
} else if (_root.hand == "bearDone") {
_root.task = "deliverBear";
}
}
}
Symbol 310 MovieClip Frame 2
play();
_root.customers++;
Symbol 310 MovieClip Frame 49
gotoAndStop (1);
Symbol 310 MovieClip Frame 50
play();
_root.customersLost++;
_root.sadCustomers.nextFrame();
Symbol 310 MovieClip Frame 99
gotoAndStop (1);
Instance of Symbol 314 MovieClip "clockHand" in Symbol 315 MovieClip Frame 1
onClipEvent (load) {
this._rotation = 1;
this.count = _root.clockCount;
this.counter = 0;
}
onClipEvent (enterFrame) {
if (_root.pauses != true) {
if (this._rotation == -1) {
_root.gotoAndStop("levelComplete");
}
if (this.counter >= this.count) {
this.counter = 0;
this._rotation = this._rotation + 1;
} else {
this.counter++;
}
}
}
Symbol 317 MovieClip Frame 1
if (_root.customersLost == 0) {
stop();
} else {
gotoAndStop([_root.customersLost + 1]);
}
Symbol 317 MovieClip Frame 6
_root.gotoAndStop("gameOver");
Symbol 326 Button
on (release) {
if (_root.pauses == false) {
_root.pauseScreen.gotoAndStop(2);
_root.pauses = true;
} else if (_root.pauses == true) {
_root.pauseScreen.gotoAndStop(1);
_root.pauses = false;
}
}
Symbol 337 Button
on (release) {
_root.pauses = false;
gotoAndStop (1);
}
Symbol 341 Button
on (release) {
_root.pauses = false;
_root.gotoAndStop("menuz");
}
Symbol 342 MovieClip Frame 1
stop();
Symbol 351 Button
on (release) {
nextFrame();
}
Symbol 356 Button
on (release) {
s = SharedObject.getLocal(_root.so);
s.data.tutorial = 1;
_root.training = 0;
_root.tuto = 0;
_root.gotoAndPlay("run");
}
Symbol 403 Button
on (release) {
s = SharedObject.getLocal(_root.so);
s.data.tutorial = 1;
_root.training = 0;
_root.tuto = 0;
_root.gotoAndPlay("run");
}
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
_root.pauses = true;
Symbol 405 MovieClip Frame 6
_root.tuto = 1;
Symbol 405 MovieClip Frame 7
_root.tuto = 2;
_root.pauses = false;
Symbol 405 MovieClip Frame 8
_root.tuto = 3;
_root.pauses = true;
Symbol 405 MovieClip Frame 10
_root.tuto = 4;
Symbol 405 MovieClip Frame 11
_root.tuto = 5;
_root.pauses = false;
Symbol 405 MovieClip Frame 12
_root.tuto = 6;
Symbol 405 MovieClip Frame 13
_root.tuto = 0;
_root.pauses = true;
Symbol 407 MovieClip Frame 2
if (_root.soundOK == true) {
nextFrame();
} else {
stop();
}
Symbol 411 MovieClip Frame 1
stop();
Symbol 419 Button
on (release) {
_root.lvl++;
_root.day++;
if (_root.flowerCount <= 7) {
_root.flowerCount++;
}
_root.clockCount = _root.clockCount + 1;
_root.hand = "empty";
_root.goal = _root.goal + 5;
_root.clears();
_root.alert = "";
_root.gotoAndStop("game");
}
Symbol 428 Button
on (release) {
if (_root.balloonCost != "-") {
if ((_root.cash2 >= _root.balloonCost) && (_root.balloonPoints < 120)) {
_root.cash2 = _root.cash2 - _root.balloonCost;
_root.balloonCost = _root.balloonCost + 25;
_root.blowTime = _root.blowTime - 1;
if (_root.balloonCost >= 125) {
_root.balloonCost = "-";
}
_root.balloonPoints = _root.balloonPoints + 30;
_root.balloonBar.fill._width = _root.balloonPoints;
} else {
_root.alert = "You don't have enough Money.";
}
} else {
_root.alert = "Upgrade is maxed out.";
}
}
Symbol 429 Button
on (release) {
if (_root.wrappingCost != "-") {
if ((_root.cash2 >= _root.wrappingCost) && (_root.wrappingPoints <= 120)) {
_root.cash2 = _root.cash2 - _root.wrappingCost;
_root.wrappingCost = _root.wrappingCost + 25;
_root.wrappingPoints = _root.wrappingPoints + 30;
if (_root.wrappingCost >= 125) {
_root.wrappingCost = "-";
}
_root.wrapTime = _root.wrapTime - 1;
_root.wrappingBar.fill._width = _root.wrappingPoints;
} else {
_root.alert = "You don't have enough Money.";
}
} else {
_root.alert = "Upgrade is maxed out.";
}
}
Symbol 430 Button
on (release) {
if (_root.candyCost != "-") {
if ((_root.cash2 >= _root.candyCost) && (_root.candyPoints <= 120)) {
_root.cash2 = _root.cash2 - _root.candyCost;
_root.candyCost = _root.candyCost + 25;
_root.candyPoints = _root.candyPoints + 30;
if (_root.candyCost >= 125) {
_root.candyCost = "-";
}
_root.candyTime = _root.candyTime - 1;
_root.candyBar.fill._width = _root.candyPoints;
} else {
_root.alert = "You don't have enough Money.";
}
} else {
_root.alert = "Upgrade is maxed out.";
}
}
Symbol 431 Button
on (release) {
if (_root.bearCost != "-") {
if ((_root.cash2 >= _root.bearCost) && (_root.bearPoints <= 120)) {
_root.cash2 = _root.cash2 - _root.bearCost;
_root.bearCost = _root.bearCost + 25;
_root.bearTime = _root.bearTime - 1;
if (_root.bearCost >= 125) {
_root.bearCost = "-";
}
_root.bearPoints = _root.bearPoints + 30;
_root.bearBar.fill._width = _root.bearPoints;
} else {
_root.alert = "You don't have enough Money.";
}
} else {
_root.alert = "Upgrade is maxed out.";
}
}
Symbol 435 MovieClip Frame 1
if (_root.xtraBear == 1) {
nextFrame();
} else {
stop();
}
Instance of Symbol 434 MovieClip in Symbol 435 MovieClip Frame 1
on (release) {
if (_root.pix == 1) {
_root.xtraBear = 1;
_root.xtras = _root.xtras + 1;
_root.pix = 0;
_root.unlock.continueBtn._visible = true;
this._parent.gotoAndStop(2);
}
}
Symbol 436 MovieClip Frame 1
if (_root.xtraBalloons == 1) {
nextFrame();
} else {
stop();
}
Instance of Symbol 434 MovieClip in Symbol 436 MovieClip Frame 1
on (release) {
if (_root.pix == 1) {
_root.xtraBalloons = 1;
_root.xtras = _root.xtras + 1;
_root.pix = 0;
_root.unlock.continueBtn._visible = true;
this._parent.gotoAndStop(2);
}
}
Symbol 437 MovieClip Frame 1
if (_root.xtraCandy == 1) {
nextFrame();
} else {
stop();
}
Instance of Symbol 434 MovieClip in Symbol 437 MovieClip Frame 1
on (release) {
if (_root.pix == 1) {
_root.xtraCandy = 1;
_root.xtras = _root.xtras + 1;
_root.pix = 0;
_root.unlock.continueBtn._visible = true;
this._parent.gotoAndStop(2);
}
}
Symbol 438 MovieClip Frame 1
if (_root.xtraWrapper == 1) {
nextFrame();
} else {
stop();
}
Instance of Symbol 434 MovieClip in Symbol 438 MovieClip Frame 1
on (release) {
if (_root.pix == 1) {
_root.xtraWrapper = 1;
_root.xtras = _root.xtras + 1;
_root.pix = 0;
_root.unlock.continueBtn._visible = true;
this._parent.gotoAndStop(2);
}
}
Symbol 439 Button
on (release) {
_root.unlock._visible = false;
}
Instance of Symbol 442 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (load) {
this.continueBtn._visible = false;
}
Symbol 447 Button
on (release) {
_root.gotoAndPlay("run");
}
Symbol 454 Button
on (release) {
_root.gotoAndStop("ask");
}
Symbol 457 Button
on (release) {
getURL ("http://www.didigames.com", "_blank");
}