Frame 1
if (((((((this._url.indexOf("http://www.addictinggames.com") == 0) or (this._url.indexOf("http://agstage.shockwave.com") == 0)) or (this._url.indexOf("http://farm.addictinggames.com") == 0)) or (this._url.indexOf("http://www.kongregate.com") == 0)) or (this._url.indexOf("http://kongregate.com") == 0)) or (this._url.indexOf("http://a.kongregate.com") == 0)) or (this._url.indexOf("http://chat.kongregate.com") == 0)) {
StartTime = new Date();
adFrame.gotoAndStop(2);
unloadMovie (adBox);
} else {
adFrame.gotoAndStop(1);
var CPMStarPoolID = 1580;
var CPMStarSubPoolID = 2;
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
}
Frame 2
StartTime = new Date();
Frame 3
Rel1 = getBytesLoaded() / getBytesTotal();
Now = new Date();
Rel2 = (Now - StartTime) / 10000;
Rel = Math.min(Rel1, Rel2);
Loading.LoadingBar.gotoAndStop(Math.round(Rel * 100) + 1);
Loading.PercentageText = Math.round(Rel * 100) + "%";
if (Rel >= 1) {
Loading.gotoAndStop(2);
}
Frame 4
gotoAndPlay ("Preloader");
Frame 5
function UpdateNest(Nest) {
Nest.Symbol.Food.gotoAndStop(Math.round(Nest.Food / (MaxFood / 10)) + 1);
Nest.Symbol.Water.gotoAndStop(Math.round((Nest.Water / MaxWater) * 100) + 1);
}
function UpdateCursor() {
Cursor._visible = InHand > 0;
Cursor.gotoAndStop(InHand);
if (InHand == 3) {
Cursor.Inside.gotoAndStop(EggsInHand);
}
Cursor._x = _xmouse;
Cursor._y = _ymouse;
}
function UpdateEggs() {
var _local1;
CursorEggs._visible = EggsInHand.length > 0;
if (CursorEggs._visible) {
MHandler.onMouseMove();
}
_local1 = 1;
while (_local1 <= 24) {
if (_local1 <= EggsInHand.length) {
CursorEggs["Egg" + _local1]._visible = true;
if ((EggsInHand[_local1 - 1].Type == 1) or (EggsInHand[_local1 - 1].Type == 2)) {
CursorEggs["Egg" + _local1].gotoAndStop(1);
} else {
CursorEggs["Egg" + _local1].gotoAndStop(2);
}
if (EggsInHand[_local1 - 1].Type == 1) {
CursorEggColors[_local1].setTransform(RawEggColor);
}
if (EggsInHand[_local1 - 1].Type == 2) {
CursorEggColors[_local1].setTransform(BoiledEggColor);
}
if (EggsInHand[_local1 - 1].Type == 3) {
SetEggByHue(CursorEggColors[_local1], EggsInHand[_local1 - 1].Hue);
}
} else {
CursorEggs["Egg" + _local1]._visible = false;
}
_local1++;
}
}
function AddHunger(Nest) {
if (Nest.Hunger < 30) {
Nest.Hunger++;
}
}
function AddThirst(Nest) {
if (Nest.Thirst < 70) {
Nest.Thirst++;
}
}
function LayEgg(Nest) {
if (Nest.Eggs.length < MaxEggs) {
Nest.Eggs.push(0);
}
}
function hsv2rgb(hue, sat, val) {
var _local2;
var _local4;
var _local3;
var _local5;
var _local11;
var _local6;
var _local8;
var _local7;
hue = hue % 360;
if (val == 0) {
return({r:0, g:0, v:0});
}
sat = sat / 100;
val = val / 100;
hue = hue / 60;
_local5 = Math.floor(hue);
_local11 = hue - _local5;
_local6 = val * (1 - sat);
_local8 = val * (1 - (sat * _local11));
_local7 = val * (1 - (sat * (1 - _local11)));
if (_local5 == 0) {
_local2 = val;
_local4 = _local7;
_local3 = _local6;
} else if (_local5 == 1) {
_local2 = _local8;
_local4 = val;
_local3 = _local6;
} else if (_local5 == 2) {
_local2 = _local6;
_local4 = val;
_local3 = _local7;
} else if (_local5 == 3) {
_local2 = _local6;
_local4 = _local8;
_local3 = val;
} else if (_local5 == 4) {
_local2 = _local7;
_local4 = _local6;
_local3 = val;
} else if (_local5 == 5) {
_local2 = val;
_local4 = _local6;
_local3 = _local8;
}
_local2 = Math.floor(_local2 * 255);
_local4 = Math.floor(_local4 * 255);
_local3 = Math.floor(_local3 * 255);
return({r:_local2, g:_local4, b:_local3});
}
function UpdatePaintMachine(Machine) {
var _local1 = hsv2rgb(Machine.Hue, 100, 100);
Machine.DisplayColor.setTransform({ra:0, rb:_local1.r, ga:0, gb:_local1.g, ba:0, bb:_local1.b});
Machine.Symbol.HueText = ("Hue: " + Machine.Hue) + "\u00BA";
}
function SetEggByHue(ColorVar, Hue) {
var _local1 = hsv2rgb(Hue, 100, 70);
ColorVar.setTransform({ra:60, rb:_local1.r, ga:60, gb:_local1.g, ba:60, bb:_local1.b});
}
function AddBunny() {
var _local4 = Bunnies.length;
var _local2;
for (_local2 in Bunnies) {
if (!Bunnies[_local2].Active) {
_local4 = _local2;
break;
}
}
FG.SampleBunny.duplicateMovieClip("Bunny" + _local4, FG.getNextHighestDepth());
Bunnies[_local4] = new Object();
Bunnies[_local4].Symbol = FG["Bunny" + _local4];
LastBunnyPlace++;
Bunnies[_local4].DestinationPlace = LastBunnyPlace;
Bunnies[_local4].CurrPlace = LastBunnyPlace + 4;
Bunnies[_local4].Symbol._x = LastX + (161 * Bunnies[_local4].CurrPlace);
Bunnies[_local4].Symbol.Index = _local4;
Bunnies[_local4].Symbol.gotoAndStop(1);
Bunnies[_local4].Active = true;
LastBunny = LastX + (LastBunnyPlace * 161);
Bunnies[_local4].Phase = 1;
Bunnies[_local4].CurrFrame = 1;
Bunnies[_local4].CashSound = new Sound(Bunnies[_local4].Symbol);
Bunnies[_local4].CashSound.attachSound("CASH");
Bunnies[_local4].BuzzSound = new Sound(Bunnies[_local4].Symbol);
Bunnies[_local4].BuzzSound.attachSound("BUZZ");
if (Tutorial and (TutorialStage == 10)) {
BunnyEggs = 1;
} else {
MaxEggsPerBunny = random(Level) + 3;
BunnyEggs = random(MaxEggsPerBunny) + 1;
}
if (BunnyEggs > 12) {
BunnyEggs = 12;
}
Bunnies[_local4].Eggs = Array();
_local2 = 1;
while (_local2 <= BunnyEggs) {
Bunnies[_local4].Eggs[_local2] = random(91) * 4;
_local2++;
}
Bunnies[_local4].Patience = (Bunnies[_local4].CurrPatience = ((BunnyEggs * 400) + (Math.pow(Level, -0.5) * 4000)) + 600);
Bunnies[_local4].Symbol.onPress = function () {
var _local3 = new Array();
var _local2;
var _local4;
for (_local2 in EggsInHand) {
for (_local4 in Bunnies[this.Index].Eggs) {
if (EggsInHand[_local2].Type == 3) {
Diff = Math.abs(EggsInHand[_local2].Hue - Bunnies[this.Index].Eggs[_local4]);
if (Diff > 180) {
Diff = 360 - Diff;
}
_local3.push({IndexInHand:_local2, IndexInBunny:_local4, Difference:Diff});
}
}
}
if (_local3.length > 0) {
MinDifference = Infinity;
SelectedSlot = Number.NaN;
_local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].Difference < MinDifference) {
MinDifference = _local3[_local2].Difference;
SelectedSlot = _local2;
}
_local2++;
}
EggsInHand.splice(_local3[SelectedSlot].IndexInHand, 1);
Bunnies[this.Index].Eggs.splice(_local3[SelectedSlot].IndexInBunny, 1);
if (Bunnies[this.Index].Eggs.length == 1) {
Bunnies[this.Index].Phase = 3;
Score = Score + Math.round(((Bunnies[this.Index].Patience - Bunnies[this.Index].CurrPatience) * Math.pow(Level, 0.3)) / 3);
}
UpdateEggs();
SetMyEggs(this);
MoneyEarned = Math.round((180 - _local3[SelectedSlot].Difference) * Math.pow(Level, 0.3));
if (_local3[SelectedSlot].Difference < 90) {
Bunnies[this.Index].CurrPatience = Bunnies[this.Index].CurrPatience + ((90 - _local3[SelectedSlot].Difference) * 4);
if (Bunnies[this.Index].CurrPatience > Bunnies[this.Index].Patience) {
Bunnies[this.Index].CurrPatience = Bunnies[this.Index].Patience;
}
}
if (_local3[SelectedSlot].Difference == 0) {
MoneyEarned = MoneyEarned * 2;
this.MoneyText.Inside.ExactMatch._visible = true;
} else {
this.MoneyText.Inside.ExactMatch._visible = false;
}
this.MoneyText.Inside.Txt = "+" + MoneyEarned;
this.MoneyText.gotoAndPlay(2);
if (Tutorial and (TutorialStage == 16)) {
TutorialStage = 17;
TutorialWindow.gotoAndStop(15);
}
Score = Score + MoneyEarned;
Money = Money + MoneyEarned;
if (SoundOn) {
PlaySound(Bunnies[this.Index].CashSound, this._x);
}
ScoreText = "SCORE: " + Score;
}
};
Bunnies[_local4].Symbol.enabled = false;
}
function SetMyEggs(Symbol) {
var _local1;
Symbol.EggColors = new Array();
_local1 = 1;
while (_local1 <= 12) {
if (_local1 < Bunnies[Symbol.Index].Eggs.length) {
Symbol.Cloud.Eggs["Egg" + _local1]._visible = true;
Symbol.EggColors[_local1] = new Color(Symbol.Cloud.Eggs["Egg" + _local1]);
SetEggByHue(Symbol.EggColors[_local1], Bunnies[Symbol.Index].Eggs[_local1]);
} else {
Symbol.Cloud.Eggs["Egg" + _local1]._visible = false;
}
_local1++;
}
}
function SetMySmiley(Symbol) {
Symbol.Cloud.Smiley.gotoAndStop(101 - Math.round((Bunnies[Symbol.Index].CurrPatience / Bunnies[Symbol.Index].Patience) * 100));
}
function UpdateLives() {
var _local2;
_local2 = 1;
while (_local2 <= 30) {
this["Life" + _local2]._visible = _local2 <= Lives;
_local2++;
}
}
function DisableAll(Level) {
if (Disabled == undefined) {
Disabled = new Array();
}
if (Level == undefined) {
Level = _root;
}
var _local3;
for (_local3 in Level) {
if (Level[_local3] instanceof TextField) {
if (Level[_local3].type == "input") {
Level[_local3].type = "dynamic";
Level[_local3].selectable = false;
Disabled.push(Level[_local3]);
}
} else if (Level[_local3]._visible) {
if (Level[_local3].enabled) {
Level[_local3].enabled = false;
Disabled.push(Level[_local3]);
}
if (Level[_local3] instanceof MovieClip) {
DisableAll(Level[_local3]);
}
}
}
}
function EnableAll() {
var _local1;
for (_local1 in Disabled) {
if (Disabled[_local1] instanceof TextField) {
Disabled[_local1].selectable = true;
Disabled[_local1].type = "input";
} else {
Disabled[_local1].enabled = true;
}
}
Disabled = new Array();
}
function sendScore(Name, Score) {
var _local2;
var _local11 = "http://www.sugar-free-games.com/eastereggstycoon.php";
var _local6 = new Array("DFSGjdfi89356928hsdhkjriuthalsdjf", "dfjhTUYTyurothUHFUurhf4384ghh", "dfjghtujuOUhfh556Hgproi3p-rruj", "frjjtgbUu89/859fhvn", "gkbhuyotuGHjfjriJFl49596JGLfkj", "gbbkfj67/(957hgjgnvn", "dftjhtu/%/hhghghdkjbvbsoiUTUi568", "vfkjciriYYRUutyghh688JGFJhfhcbvb");
var _local3 = new Array();
_local3[0] = random(_local6.length);
_local3[1] = random(_local6[_local3[0]].length);
_local3[2] = Name.length;
var _local7 = Score.toString();
_local3[3] = _local7.length;
_local2 = 0;
while (_local2 < _local3[2]) {
_local3[5 + _local2] = ord(Name.charAt(_local2));
_local2++;
}
_local2 = 0;
while (_local2 < _local3[3]) {
_local3[(5 + _local3[2]) + _local2] = ord(_local7.charAt(_local2));
_local2++;
}
var _local8 = 0;
_local2 = 5;
while (_local2 < _local3.length) {
_local8 = _local8 + _local3[_local2];
_local2++;
}
_local3[4] = _local8 % 100;
var _local4 = _local3[1];
_local2 = 2;
while (_local2 < _local3.length) {
var _local5 = ord(_local6[_local3[0]].charAt(_local4)) % 40;
if (_local5 == 0) {
_local5 = 40;
}
_local3[_local2] = _local3[_local2] + ord(_local6[_local3[0]].charAt(_local4));
_local3[_local2] = _local3[_local2] * _local5;
_local4++;
if (_local4 >= _local6[_local3[0]].length) {
_local4 = 0;
}
_local2++;
}
var _local10 = _local3.join("x");
this.createEmptyMovieClip("sendScoreContainer", this.getNextHighestDepth());
sendScoreContainer.res = _local10;
sendScoreContainer.getURL(_local11, "_blank", "POST");
sendScoreContainer.removeMovieClip();
}
function StartGame() {
NestsNum = 1;
InitMaxWater = (MaxWater = 100);
InitMaxFood = (MaxFood = 50);
InitMaxEggs = (MaxEggsInHand = 24);
BurnersNum = 1;
InitBurnersTime = (BurnersTime = 300);
PaintMachinesNum = 1;
InitPaintTime = (PaintTime = 200);
InitLayEggDelay = (LayEggDelay = 200);
Level = 1;
Money = 0;
Score = 0;
Lives = 5;
gotoAndPlay ("InitGame");
}
function PlaySound(Snd, X) {
GlobalX = X + FG._x;
var _local1 = Math.round((GlobalX - 350) / 4);
if (_local1 < -100) {
_local1 = -100;
}
if (_local1 > 100) {
_local1 = 100;
}
var _local2 = 100 - Math.round(Math.abs(GlobalX - 350) / 10);
if (_local2 > 0) {
Snd.setPan(_local1);
Snd.setVolume(_local2);
Snd.start();
}
}
BunnyLimit = 30;
RawEggColor = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
BoiledEggColor = {ra:70, rb:20, ga:70, gb:10, ba:70, bb:0, aa:100, ab:0};
Upgrades = [undefined, {Name:"Feed Durability", Type:1, Variable:"MaxFood", Step:0.25, Price:1000}, {Name:"Water Durability", Type:1, Variable:"MaxWater", Step:0.25, Price:1500}, {Name:"Buy Painting Machine", Type:3, Variable:"PaintMachinesNum", Price:6000}, {Name:"Buy Burner", Type:3, Variable:"BurnersNum", Price:4500}, {Name:"Buy Hen", Type:3, Variable:"NestsNum", Price:5000}, {Name:"Hens Fertility", Type:2, Variable:"LayEggDelay", Step:0.25, Price:10000}, {Name:"Painting Machines Speed", Type:2, Variable:"PaintTime", Step:0.25, Price:15000}, {Name:"Burners Speed", Type:2, Variable:"BurnersTime", Step:0.25, Price:17000}];
SoundOn = true;
MaxEggs = 6;
MHandler = new Object();
MHandler.onMouseMove = function () {
if (InHand > 0) {
Cursor._x = _xmouse;
Cursor._y = _ymouse;
}
if (EggsInHand.length > 0) {
if (((EggsInHand.length == 1) or (EggsInHand.length == 3)) or (EggsInHand.length == 5)) {
CursorEggs._x = _xmouse - 7;
} else {
CursorEggs._x = _xmouse;
}
CursorEggs._y = _ymouse;
}
};
Mouse.addListener(MHandler);
Frame 7
stop();
Frame 8
Butt1.Inside.gotoAndStop(1);
Butt2.Inside.gotoAndStop(2);
Butt3.Inside.gotoAndStop(3);
Butt4.Inside.gotoAndStop(4);
stop();
Butt1.onPress = function () {
StartGame();
};
Butt2.onPress = function () {
getURL ("http://www.sugar-free-games.com/showgame.php?game=3435", "_blank");
};
Butt3.onPress = function () {
getURL ("http://www.sugar-free-games.com/eastereggstycoon.php", "_blank");
};
Butt4.onPress = function () {
getURL ("http://www.sugar-free-games.com", "_blank");
};
Frame 10
BGX = 0;
LastX = 20;
FG.NestShadowSample._visible = false;
FG.NestSample._visible = false;
Cursor._visible = false;
CursorEggs._visible = false;
InHand = 0;
EggsInHand = new Array();
CameOut = 0;
Served = 0;
ToServe = (Level * 2) + 2;
BunniesOnScreen = 0;
ClickSound = new Sound(Cursor);
ClickSound.attachSound("CLICK");
LevelText = "LEVEL " + Level;
if ((Level % 5) == 0) {
Lives++;
}
TutorialWindow._visible = (Tutorial = Level == 1);
TutorialStage = 1;
TutorialWindow.gotoAndStop(1);
UpdateLives();
FG.FeedSack._x = LastX;
FG.FeedSack.swapDepths(FG.getNextHighestDepth());
FG.FeedSack.onPress = function () {
if (InHand == 0) {
InHand = 1;
UpdateCursor();
this.Shovel._visible = false;
} else if (InHand == 1) {
InHand = 0;
UpdateCursor();
this.Shovel._visible = true;
}
};
LastX = LastX + 200;
FG.WaterBarrel._x = LastX;
FG.WaterBarrel.swapDepths(FG.getNextHighestDepth());
FG.WaterBarrel.onPress = function () {
if (InHand == 0) {
InHand = 2;
UpdateCursor();
this.Ladle._visible = false;
} else if (InHand == 2) {
InHand = 0;
UpdateCursor();
this.Ladle._visible = true;
}
};
LastX = LastX + 200;
s = 1;
while (s <= Math.ceil(NestsNum / 2)) {
FG.NestShadowSample.duplicateMovieClip("NS" + s, FG.getNextHighestDepth());
FG["NS" + s]._x = LastX + ((s - 1) * 170);
s++;
}
Nests = new Array();
n = 1;
while (n <= NestsNum) {
Nests[n] = new Object();
FG.NestSample.duplicateMovieClip("N" + n, FG.getNextHighestDepth());
Nests[n].Symbol = FG["N" + n];
Nests[n].Symbol._x = (Math.floor((n - 1) / 2) * 170) + LastX;
Nests[n].Symbol._y = 480 - (((n - 1) % 2) * 220);
Nests[n].Symbol.Index = n;
Nests[n].HenSounds = [new Sound(Nests[n].Symbol), new Sound(Nests[n].Symbol), new Sound(Nests[n].Symbol)];
Nests[n].HenSounds[0].attachSound("HEN1");
Nests[n].HenSounds[1].attachSound("HEN2");
Nests[n].HenSounds[2].attachSound("HEN3");
Nests[n].EatSound = new Sound(Nests[n].Symbol);
Nests[n].EatSound.attachSound("EAT");
Nests[n].DrinkSound = new Sound(Nests[n].Symbol);
Nests[n].DrinkSound.attachSound("DRINK");
Nests[n].EggSound = new Sound(Nests[n].Symbol);
Nests[n].EggSound.attachSound("EGG");
Nests[n].WaterSound = new Sound(Nests[n].Symbol);
Nests[n].WaterSound.attachSound("WATER");
Nests[n].FoodSound = new Sound(Nests[n].Symbol);
Nests[n].FoodSound.attachSound("FOOD");
Nests[n].Symbol.onPress = function () {
if ((InHand == 0) and (Nests[this.Index].Eggs.length > 0)) {
if (EggsInHand.length < MaxEggsInHand) {
Nests[this.Index].Eggs.shift();
if (SoundOn) {
PlaySound(ClickSound, FG._xmouse);
}
EggsInHand.push({Type:1});
UpdateEggs();
if (Tutorial and (TutorialStage == 4)) {
TutorialStage = 5;
TutorialWindow.gotoAndStop(4);
}
}
}
if (InHand == 1) {
if (Tutorial and (TutorialStage == 1)) {
TutorialStage = 2;
TutorialWindow.gotoAndStop(2);
}
Nests[this.Index].Food = MaxFood;
UpdateNest(Nests[this.Index]);
InHand = 0;
if (SoundOn) {
PlaySound(Nests[this.Index].FoodSound, this._x);
}
UpdateCursor();
FG.FeedSack.Shovel._visible = true;
}
if (InHand == 2) {
if (Tutorial and (TutorialStage == 2)) {
TutorialStage = 3;
TutorialWindow.gotoAndStop(3);
}
Nests[this.Index].Water = MaxWater;
if (SoundOn) {
PlaySound(Nests[this.Index].WaterSound, this._x);
}
UpdateNest(Nests[this.Index]);
InHand = 0;
UpdateCursor();
FG.WaterBarrel.Ladle._visible = true;
}
};
if ((n % 2) == 0) {
Nests[n].Symbol.Grass._visible = false;
}
if (random(2) == 0) {
Nests[n].Phase = 1;
Nests[n].Frame = 1;
} else {
Nests[n].Phase = 2;
Nests[n].Frame = 8;
}
Nests[n].Food = 0;
Nests[n].Water = 0;
Nests[n].Hunger = 1;
Nests[n].Thirst = 1;
i = 1;
while (i <= MaxEggs) {
Nests[n].Symbol.Eggs.EggSample.duplicateMovieClip("Egg" + ((MaxEggs + 1) - i), Nests[n].Symbol.Eggs.getNextHighestDepth());
Nests[n].Symbol.Eggs["Egg" + ((MaxEggs + 1) - i)]._visible = false;
i++;
}
Nests[n].Eggs = new Array();
UpdateNest(Nests[n]);
Nests[n].Symbol.Eggs.EggSample._visible = false;
n++;
}
LastX = LastX + (((s - 1) * 170) + 30);
FG.TrashBin.swapDepths(FG.getNextHighestDepth());
FG.TrashBin._x = LastX;
FG.TrashBin.onPress = function () {
EggsInHand = new Array();
UpdateEggs();
};
LastX = LastX + 170;
Burners = new Array();
i = 1;
while (i <= BurnersNum) {
FG.BurnerSample.duplicateMovieClip("B" + i, FG.getNextHighestDepth());
Burners[i] = new Object();
Burners[i].Symbol = FG["B" + i];
Burners[i].Symbol._x = LastX;
Burners[i].Symbol.Colander.Eggs.gotoAndStop(1);
LastX = LastX + 300;
Burners[i].Eggs = 0;
Burners[i].Symbol.gotoAndStop(1);
Burners[i].Symbol.Index = i;
Burners[i].BoilSounds = [new Sound(Burners[i].Symbol), new Sound(Burners[i].Symbol), new Sound(Burners[i].Symbol)];
Burners[i].BoilSounds[0].attachSound("BOIL1");
Burners[i].BoilSounds[1].attachSound("BOIL2");
Burners[i].BoilSounds[2].attachSound("BOIL3");
Burners[i].Symbol.onPress = function () {
if (this._currentframe == 1) {
if (this.Arrow.hitTest(_xmouse, _ymouse, true) and (Burners[this.Index].Eggs > 0)) {
this.gotoAndStop(2);
this.Colander.Eggs.gotoAndStop(Burners[this.Index].Eggs + 1);
Burners[this.Index].Time = 0;
if (Tutorial and (TutorialStage == 7)) {
TutorialStage = 8;
TutorialWindow.gotoAndStop(7);
}
if (SoundOn) {
PlaySound(ClickSound, FG._xmouse);
}
} else {
if (Tutorial and (TutorialStage == 6)) {
TutorialStage = 7;
TutorialWindow.gotoAndStop(6);
}
HaveRawEggs = false;
if ((Burners[this.Index].Eggs < 12) and (EggsInHand.length > 0)) {
for (eih in EggsInHand) {
if (EggsInHand[eih].Type == 1) {
EggsInHand.splice(eih, 1);
UpdateEggs();
Burners[this.Index].Eggs++;
this.Colander.Eggs.gotoAndStop(Burners[this.Index].Eggs + 1);
if (SoundOn) {
PlaySound(ClickSound, FG._xmouse);
}
break;
}
}
}
}
}
if (this._currentframe == 3) {
if (EggsInHand.length < MaxEggsInHand) {
if (SoundOn) {
PlaySound(ClickSound, FG._xmouse);
}
if (Tutorial and (TutorialStage == 9)) {
TutorialStage = 10;
TutorialWindow.gotoAndStop(9);
}
EggsInHand.push({Type:2});
UpdateEggs();
Burners[this.Index].Eggs--;
if (Burners[this.Index].Eggs <= 0) {
this.gotoAndStop(1);
this.Colander.Eggs.gotoAndStop(1);
} else {
this.Colander.Eggs.gotoAndStop(Burners[this.Index].Eggs + 1);
}
}
}
};
i++;
}
FG.BurnerSample._visible = false;
LastX = LastX + 50;
PaintMachines = new Array();
i = 1;
while (i <= PaintMachinesNum) {
FG.PaintMachineSample.duplicateMovieClip("PM" + i, FG.getNextHighestDepth());
PaintMachines[i] = new Object();
PaintMachines[i].Symbol = FG["PM" + i];
PaintMachines[i].StartSound = new Sound(PaintMachines[i].Symbol);
PaintMachines[i].StartSound.attachSound("STARTPAINTER");
PaintMachines[i].EndSound = new Sound(PaintMachines[i].Symbol);
PaintMachines[i].EndSound.attachSound("ENDPAINTER");
PaintMachines[i].Symbol._x = LastX;
PaintMachines[i].Symbol.gotoAndStop(1);
PaintMachines[i].Symbol.Index = i;
PaintMachines[i].MovingSlider = false;
PaintMachines[i].Hue = 0;
PaintMachines[i].DisplayColor = new Color(PaintMachines[i].Symbol.ColDisp);
UpdatePaintMachine(PaintMachines[i]);
PaintMachines[i].Symbol.onPress = function () {
if (this.Sl.hitTest(_xmouse, _ymouse, true)) {
PaintMachines[this.Index].MovingSlider = true;
PaintMachines[this.Index].StartX = this.Sl._x;
PaintMachines[this.Index].StartMouseX = _xmouse;
} else {
switch (this._currentframe) {
case 1 :
if ((!Tutorial) or (TutorialStage > 12)) {
for (eih in EggsInHand) {
if (EggsInHand[eih].Type == 2) {
if (Tutorial and (TutorialStage == 13)) {
TutorialStage = 14;
TutorialWindow.gotoAndStop(12);
}
EggsInHand.splice(eih, 1);
UpdateEggs();
this.gotoAndStop(2);
PaintMachines[this.Index].Time = 0;
PaintMachines[this.Index].SelectedHue = PaintMachines[this.Index].Hue;
if (SoundOn) {
PlaySound(PaintMachines[this.Index].StartSound, this._x);
}
break;
}
}
}
break;
case 3 :
if (EggsInHand.length >= MaxEggsInHand) {
break;
}
if (Tutorial and (TutorialStage == 15)) {
TutorialStage = 16;
TutorialWindow.gotoAndStop(14);
}
EggsInHand.push({Type:3, Hue:PaintMachines[this.Index].SelectedHue});
if (SoundOn) {
PlaySound(ClickSound, FG._xmouse);
}
UpdateEggs();
this.gotoAndStop(1);
}
}
};
PaintMachines[i].Symbol.onRelease = (PaintMachines[i].Symbol.onReleaseOutside = function () {
if ((PaintMachines[this.Index].MovingSlider and Tutorial) and (TutorialStage == 12)) {
TutorialStage = 13;
TutorialWindow.gotoAndStop(11);
}
PaintMachines[this.Index].MovingSlider = false;
});
LastX = LastX + 150;
i++;
}
LastBunny = LastX;
LastBunnyPlace = 0;
FG.PaintMachineSample._visible = false;
CursorEggColors = new Array();
i = 1;
while (i <= 24) {
CursorEggColors[i] = new Color(CursorEggs["Egg" + i]);
i++;
}
FG.SampleBunny._visible = false;
Bunnies = new Array();
PausedMenu._visible = false;
Paused = false;
PauseButt.onPress = function () {
DisableAll();
Paused = true;
PausedMenu._visible = true;
};
Frame 11
if (!Paused) {
BGSpeed = 0;
if (_xmouse < 100) {
BGSpeed = 100 - _xmouse;
}
if (_xmouse > 600) {
BGSpeed = 600 - _xmouse;
}
BGSpeed = BGSpeed / 3;
if (Key.isDown(37) or Key.isDown(65)) {
BGSpeed = 50;
}
if (Key.isDown(39) or Key.isDown(68)) {
BGSpeed = -50;
}
if ((FG._x + BGSpeed) < ((-LastBunny) + 300)) {
BGSpeed = 0;
}
if (FG._x < ((-LastBunny) + 300)) {
BGSpeed = 30;
}
if ((Tutorial and (TutorialStage == 5)) and (FG._x < -200)) {
TutorialStage = 6;
TutorialWindow.gotoAndStop(5);
}
if ((Tutorial and (TutorialStage == 11)) and (FG._x < -800)) {
TutorialStage = 12;
TutorialWindow.gotoAndStop(10);
}
BGX = Math.round(BGX + BGSpeed);
if (BGX > 0) {
BGX = 0;
}
BG._x = BGX % 700;
FG._x = BGX;
n = 1;
while (n <= NestsNum) {
if (SoundOn and ((Nests[n].Frame == 16) or (Nests[n].Frame == 25))) {
PlaySound(Nests[n].HenSounds[random(3)], Nests[n].Symbol._x);
}
switch (Nests[n].Phase) {
case 1 :
if (random(20) == 0) {
Nests[n].Phase = 5;
Nests[n].Frame = 16;
} else if ((random(20) == 0) or (((Nests[n].Thirst > 0) and (Nests[n].Water > 0)) and (!((Nests[n].Hunger > 0) and (Nests[n].Food > 0))))) {
Nests[n].Phase = 3;
} else if ((random(20) == 0) or ((Nests[n].Hunger > 0) and (Nests[n].Food > 0))) {
if (Nests[n].Food > 0) {
Nests[n].Phase = 9;
Nests[n].Frame = 33;
} else {
AddHunger(Nests[n]);
}
}
break;
case 2 :
if (random(20) == 0) {
Nests[n].Phase = 7;
Nests[n].Frame = 25;
} else if ((random(20) == 0) or ((Nests[n].Hunger > 0) and (Nests[n].Food > 0))) {
Nests[n].Phase = 4;
} else if ((random(20) == 0) or ((Nests[n].Thirst > 0) and (Nests[n].Water > 0))) {
if (Nests[n].Water > 0) {
Nests[n].Frame = 51;
Nests[n].Phase = 13;
} else {
AddThirst(Nests[n]);
}
}
break;
case 3 :
Nests[n].Frame++;
if (Nests[n].Frame == 8) {
Nests[n].Phase = 2;
}
break;
case 4 :
Nests[n].Frame++;
if (Nests[n].Frame == 15) {
Nests[n].Phase = 1;
Nests[n].Frame = 1;
}
break;
case 5 :
Nests[n].Frame++;
if (Nests[n].Frame == 23) {
Nests[n].Phase = 6;
}
break;
case 6 :
Nests[n].Frame--;
if (Nests[n].Frame == 15) {
Nests[n].Frame = 1;
Nests[n].Phase = 1;
}
break;
case 7 :
Nests[n].Frame++;
if (Nests[n].Frame == 32) {
Nests[n].Phase = 8;
}
break;
case 8 :
Nests[n].Frame--;
if (Nests[n].Frame == 24) {
Nests[n].Frame = 8;
Nests[n].Phase = 2;
}
break;
case 9 :
Nests[n].Frame++;
if (Nests[n].Frame == 40) {
Nests[n].Phase = 11;
}
break;
case 10 :
if ((random(20) == 0) or ((Nests[n].Hunger > 0) and (Nests[n].Food > 0))) {
if (Nests[n].Food > 0) {
Nests[n].Phase = 11;
} else {
Nests[n].Phase = 12;
AddHunger(Nests[n]);
}
} else if (random(20) == 0) {
Nests[n].Phase = 12;
}
break;
case 11 :
Nests[n].Frame++;
if (Nests[n].Frame == 41) {
if (!Tutorial) {
Nests[n].Food--;
}
if (SoundOn) {
PlaySound(Nests[n].EatSound, Nests[n].Symbol._x);
}
if (Nests[n].Hunger > 0) {
Nests[n].Hunger--;
}
UpdateNest(Nests[n]);
}
if (Nests[n].Frame == 51) {
Nests[n].Phase = 10;
Nests[n].Frame = 40;
}
break;
case 12 :
Nests[n].Frame--;
if (Nests[n].Frame == 32) {
Nests[n].Frame = 1;
Nests[n].Phase = 1;
}
break;
case 13 :
Nests[n].Frame++;
if (Nests[n].Frame == 58) {
Nests[n].Phase = 15;
}
break;
case 14 :
if ((random(20) == 0) or ((Nests[n].Thirst > 0) and (Nests[n].Water > 0))) {
if (Nests[n].Water > 0) {
Nests[n].Phase = 15;
} else {
AddThirst(Nests[n]);
Nests[n].Phase = 22;
}
} else if (random(20) == 0) {
Nests[n].Phase = 22;
}
break;
case 15 :
Nests[n].Frame++;
if (Nests[n].Frame == 65) {
Nests[n].Frame = 63;
Nests[n].Phase = 16;
Nests[n].Counter = 3 + random(3);
}
break;
case 16 :
Nests[n].Frame = 62;
Nests[n].Phase = 17;
break;
case 17 :
Nests[n].Frame++;
if (Nests[n].Frame == 65) {
Nests[n].Counter--;
if (!Tutorial) {
Nests[n].Water--;
}
if (SoundOn) {
PlaySound(Nests[n].DrinkSound, Nests[n].Symbol._x);
}
if (Nests[n].Thirst > 0) {
Nests[n].Thirst--;
}
UpdateNest(Nests[n]);
if (Nests[n].Water <= 0) {
AddThirst(Nests[n]);
}
if ((Nests[n].Counter == 0) or (Nests[n].Water <= 0)) {
Nests[n].Phase = 18;
} else {
Nests[n].Frame = 63;
Nests[n].Phase = 16;
}
}
break;
case 18 :
Nests[n].Frame++;
if (Nests[n].Frame == 71) {
Nests[n].Frame = 69;
Nests[n].Phase = 19;
Nests[n].Counter = 3 + random(3);
}
break;
case 19 :
Nests[n].Frame = 68;
Nests[n].Phase = 20;
break;
case 20 :
Nests[n].Frame++;
if (Nests[n].Frame == 71) {
Nests[n].Counter--;
if (Nests[n].Counter == 0) {
Nests[n].Phase = 21;
} else {
Nests[n].Frame = 69;
Nests[n].Phase = 19;
}
}
break;
case 21 :
Nests[n].Frame++;
if (Nests[n].Frame == 74) {
Nests[n].Frame = 58;
Nests[n].Phase = 14;
}
break;
case 22 :
Nests[n].Frame--;
if (Nests[n].Frame != 50) {
break;
}
Nests[n].Phase = 2;
Nests[n].Frame = 8;
}
Nests[n].Symbol.gotoAndStop(Nests[n].Frame);
if ((((((Nests[n].Hunger == 0) and (Nests[n].Thirst == 0)) and ((Nests[n].Eggs[Nests[n].Eggs.length - 1] > 6) or (Nests[n].Eggs.length == 0))) and (random(Math.round(LayEggDelay)) == 0)) and (!Tutorial)) or (Tutorial and (TutorialStage == 3))) {
if (TutorialStage == 3) {
TutorialStage = 4;
}
if (SoundOn) {
PlaySound(Nests[n].EggSound, Nests[n].Symbol._x);
}
LayEgg(Nests[n]);
}
i = 0;
while (i < MaxEggs) {
if (i < Nests[n].Eggs.length) {
if (Nests[n].Eggs[i] < (34 - (i * 4))) {
Nests[n].Eggs[i]++;
}
Nests[n].Symbol.Eggs["Egg" + (i + 1)]._visible = true;
Nests[n].Symbol.Eggs["Egg" + (i + 1)].gotoAndStop(Nests[n].Eggs[i]);
} else {
Nests[n].Symbol.Eggs["Egg" + (i + 1)]._visible = false;
}
i++;
}
n++;
}
for (b in Burners) {
if (Burners[b].Symbol._currentframe == 2) {
Burners[b].Time++;
if (Burners[b].Time >= BurnersTime) {
if (Tutorial and (TutorialStage == 8)) {
TutorialStage = 9;
TutorialWindow.gotoAndStop(8);
}
Burners[b].Symbol.gotoAndStop(3);
Burners[b].Symbol.Colander.Eggs.gotoAndStop(Burners[b].Eggs + 1);
Burners[b].EggColor = new Color(Burners[b].Symbol.Colander.Eggs);
Burners[b].EggColor.setTransform(BoiledEggColor);
}
Burners[b].Symbol.Clock.gotoAndStop(Math.round((Burners[b].Time / BurnersTime) * 12) + 1);
if (random(20) == 0) {
PlaySound(Burners[b].BoilSounds[random(3)], Burners[b].Symbol._x);
if (Burners[b].Symbol.Bubble1._currentframe == 1) {
Burners[b].Symbol.Bubble1._x = random(110) + 30;
Burners[b].Symbol.Bubble1.gotoAndPlay(2);
} else if (Burners[b].Symbol.Bubble2._currentframe == 1) {
Burners[b].Symbol.Bubble2._x = random(110) + 30;
Burners[b].Symbol.Bubble2.gotoAndPlay(2);
}
}
}
}
for (m in PaintMachines) {
if (PaintMachines[m].MovingSlider) {
MovedMouseX = _xmouse - PaintMachines[m].StartMouseX;
NewSliderX = PaintMachines[m].StartX + MovedMouseX;
if (NewSliderX < 13) {
NewSliderX = 13;
}
if (NewSliderX > 103) {
NewSliderX = 103;
}
PaintMachines[m].Symbol.Sl._x = NewSliderX;
PaintMachines[m].Hue = (NewSliderX - 13) * 4;
UpdatePaintMachine(PaintMachines[m]);
}
if (PaintMachines[m].Symbol._currentframe == 2) {
PaintMachines[m].Time++;
if (PaintMachines[m].Time >= PaintTime) {
if (Tutorial and (TutorialStage == 14)) {
TutorialStage = 15;
TutorialWindow.gotoAndStop(13);
}
if (SoundOn) {
PlaySound(PaintMachines[m].EndSound, PaintMachines[m].Symbol._x);
}
PaintMachines[m].Symbol.gotoAndStop(3);
PaintMachines[m].EggColor = new Color(PaintMachines[m].Symbol.Egg);
SetEggByHue(PaintMachines[m].EggColor, PaintMachines[m].SelectedHue);
} else {
PaintMachines[m].Symbol.ProgressText = Math.round((PaintMachines[m].Time / PaintTime) * 100) + "%";
}
}
}
if ((((CameOut < ToServe) and (BunniesOnScreen < BunnyLimit)) and (!Tutorial)) or (Tutorial and (TutorialStage == 10))) {
BunnyChence = 500 + Math.round(800 * Math.pow(Level, -0.5));
NooneThere = true;
for (b in Bunnies) {
if (Bunnies[b].Phase < 3) {
NooneThere = false;
break;
}
}
if (NooneThere) {
BunnyChence = Math.round(BunnyChence / 4);
}
if ((random(BunnyChence) == 0) or (Tutorial and (TutorialStage == 10))) {
AddBunny();
if (TutorialStage == 10) {
TutorialStage = 11;
}
CameOut++;
BunniesOnScreen++;
}
}
for (b in Bunnies) {
if (Bunnies[b].Active) {
switch (Bunnies[b].Phase) {
case 1 :
Bunnies[b].CurrFrame++;
if (Bunnies[b].CurrFrame == 23) {
Bunnies[b].CurrPlace--;
Bunnies[b].Symbol._x = Bunnies[b].Symbol._x - 161;
Bunnies[b].CurrFrame = 1;
if (Bunnies[b].CurrPlace == Bunnies[b].DestinationPlace) {
Bunnies[b].Phase = 2;
Bunnies[b].Symbol.enabled = true;
}
}
break;
case 2 :
Bunnies[b].CurrPatience--;
SetMySmiley(Bunnies[b].Symbol);
if (Bunnies[b].CurrPatience <= 0) {
Bunnies[b].Phase = 3;
Lives--;
if (SoundOn) {
PlaySound(Bunnies[b].BuzzSound, Bunnies[b].Symbol._x);
}
if (Lives <= 0) {
gotoAndStop ("GameOver");
}
UpdateLives();
}
break;
case 3 :
Bunnies[b].Symbol.Cloud._visible = false;
Bunnies[b].Symbol.enabled = false;
CanGo = true;
for (cb in Bunnies) {
if (((Bunnies[cb].Phase > 3) and (Bunnies[cb].Symbol._x < Bunnies[b].Symbol._x)) and ((Bunnies[b].Symbol._x - Bunnies[cb].Symbol._x) < 250)) {
CanGo = false;
break;
}
}
if (CanGo) {
Served++;
if (Served >= ToServe) {
gotoAndStop ("LevelComplete");
}
Bunnies[b].CurrFrame = 1;
Bunnies[b].Phase = 4;
LastBunnyPlace--;
LastBunny = LastX + (LastBunnyPlace * 161);
for (cb in Bunnies) {
if ((Bunnies[cb].Phase < 4) and (Bunnies[cb].DestinationPlace > Bunnies[b].DestinationPlace)) {
Bunnies[cb].DestinationPlace--;
if (Bunnies[cb].Phase > 1) {
Bunnies[cb].Phase = 1;
Bunnies[cb].Symbol.enabled = false;
}
}
}
}
break;
case 4 :
Bunnies[b].CurrFrame++;
if (Bunnies[b].CurrFrame == 6) {
Bunnies[b].CurrFrame = 23;
Bunnies[b].Phase = 5;
}
break;
case 5 :
Bunnies[b].CurrFrame++;
if (Bunnies[b].CurrFrame == 30) {
Bunnies[b].Symbol._xscale = -75;
Bunnies[b].Symbol.MoneyText.gotoAndStop(1);
Bunnies[b].Symbol._x = Bunnies[b].Symbol._x - 53.48;
Bunnies[b].Symbol._y = Bunnies[b].Symbol._y - 23.55;
for (cb in Bunnies) {
if ((Bunnies[cb].Phase <= 4) and (Bunnies[cb].Symbol.getDepth() < Bunnies[b].Symbol.getDepth())) {
Bunnies[cb].Symbol.swapDepths(Bunnies[b].Symbol);
}
}
Bunnies[b].Phase = 6;
}
break;
case 6 :
Bunnies[b].CurrFrame++;
if (Bunnies[b].CurrFrame != 53) {
break;
}
Bunnies[b].CurrFrame = 30;
Bunnies[b].Symbol._x = Bunnies[b].Symbol._x + 161;
if (Bunnies[b].Symbol._x <= (LastBunny + 1000)) {
break;
}
Bunnies[b].Symbol.removeMovieClip();
Bunnies[b].Active = false;
BunniesOnScreen--;
}
Bunnies[b].Symbol.gotoAndStop(Bunnies[b].CurrFrame);
}
}
}
Frame 12
gotoAndPlay ("Cycle");
Frame 13
gotoAndStop ("Upgrades");
Frame 14
Butt.gotoAndStop(1);
Butt.onPress = function () {
play();
};
Frame 19
Butt.gotoAndStop(2);
Butt.onPress = function () {
Level++;
gotoAndPlay ("InitGame");
};
Frame 23
function UpdateUpgrades() {
i = 1;
while (i <= 8) {
this["Upgrade" + i].NameText = Upgrades[i].Name;
this["Upgrade" + i].InfoText = this[Upgrades[i].Variable];
if (Upgrades[i].Type == 1) {
this["Upgrade" + i].InfoText = ("Current: " + Math.round((this[Upgrades[i].Variable] / this["Init" + Upgrades[i].Variable]) * 100)) + "%";
this["Upgrade" + i].InfoText = this["Upgrade" + i].InfoText + (("; Next: " + Math.round(((this[Upgrades[i].Variable] / this["Init" + Upgrades[i].Variable]) + Upgrades[i].Step) * 100)) + "%");
this["Upgrade" + i].Price = Math.round((Upgrades[i].Price * this[Upgrades[i].Variable]) / this["Init" + Upgrades[i].Variable]);
this["Upgrade" + i].PriceText = "Price: " + this["Upgrade" + i].Price;
}
if (Upgrades[i].Type == 2) {
this["Upgrade" + i].InfoText = ("Current: " + Math.round((this["Init" + Upgrades[i].Variable] / this[Upgrades[i].Variable]) * 100)) + "%";
this["Upgrade" + i].InfoText = this["Upgrade" + i].InfoText + (("; Next: " + Math.round(((this["Init" + Upgrades[i].Variable] / this[Upgrades[i].Variable]) + Upgrades[i].Step) * 100)) + "%");
this["Upgrade" + i].Price = Math.round((Upgrades[i].Price * this["Init" + Upgrades[i].Variable]) / this[Upgrades[i].Variable]);
this["Upgrade" + i].PriceText = "Price: " + this["Upgrade" + i].Price;
}
if (Upgrades[i].Type == 3) {
this["Upgrade" + i].InfoText = (("Current: " + this[Upgrades[i].Variable]) + "; Next: ") + (this[Upgrades[i].Variable] + 1);
this["Upgrade" + i].Price = Upgrades[i].Price * this[Upgrades[i].Variable];
this["Upgrade" + i].PriceText = "Price: " + this["Upgrade" + i].Price;
}
this["Upgrade" + i].Index = i;
this["Upgrade" + i].onPress = function () {
if (Upgrades[this.Index].Type == 1) {
_root[Upgrades[this.Index].Variable] = _root[Upgrades[this.Index].Variable] + (_root["Init" + Upgrades[this.Index].Variable] * Upgrades[this.Index].Step);
}
if (Upgrades[this.Index].Type == 2) {
_root[Upgrades[this.Index].Variable] = _root["Init" + Upgrades[this.Index].Variable] / ((_root["Init" + Upgrades[this.Index].Variable] / _root[Upgrades[this.Index].Variable]) + Upgrades[this.Index].Step);
}
if (Upgrades[this.Index].Type == 3) {
_root[Upgrades[this.Index].Variable]++;
}
Money = Money - this.Price;
UpdateUpgrades();
};
if (this["Upgrade" + i].Price <= Money) {
this["Upgrade" + i].Icon.gotoAndStop(1);
this["Upgrade" + i].enabled = true;
} else {
this["Upgrade" + i].Icon.gotoAndStop(2);
this["Upgrade" + i].enabled = false;
}
this["Upgrade" + i].Icon.Inside.gotoAndStop(i);
i++;
}
MoneyText = "MONEY: " + Money;
}
UpdateUpgrades();
stop();
Frame 24
gotoAndStop ("Upgrades");
Frame 25
gotoAndStop ("GameOver");
Frame 26
ScoreText = "YOUR SCORE IS " + Score;
this.onEnterFrame = function () {
if (eval (Selection.getFocus()) == InputField) {
delete onEnterFrame;
} else {
Selection.setFocus("InputField");
}
};
InputField.text = "";
SubmitButt.onPress = function () {
if (InputField.text.length > 0) {
sendScore(InputField.text, Score);
gotoAndStop ("ScoreSubmitted");
}
};
Frame 27
gotoAndStop ("GameOver");
Frame 28
gotoAndStop ("ScoreSubmitted");
Frame 29
MMButt.onPress = function () {
gotoAndStop ("MainMenu");
};
Frame 30
gotoAndStop ("ScoreSubmitted");
Symbol 16 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 1
stop();
Symbol 24 MovieClip Frame 2
Butt.Txt = "PLAY";
Butt.onPress = function () {
_parent.gotoAndPlay("InitStuff");
};
Symbol 42 Button
on (press) {
getURL ("http://www.sugar-free-games.com", "_SELF");
}
Symbol 51 MovieClip Frame 100
_parent.gotoAndStop("MainMenu");
Symbol 242 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 11
_parent._parent._parent.SetMyEggs(_parent);
Symbol 326 MovieClip Frame 13
_parent._parent._parent.SetMySmiley(_parent);
Symbol 326 MovieClip Frame 21
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
Butt.onPress = function () {
this._parent._visible = false;
this._parent._parent.Tutorial = false;
};
Symbol 424 MovieClip Frame 1
Butt1.onPress = function () {
_root.PausedMenu._visible = false;
_parent.EnableAll();
_parent.Paused = false;
};
Butt2.onPress = function () {
_parent.gotoAndStop("GameOver");
};
if (_parent.SoundOn) {
SoundTxt = "SOUND OFF";
} else {
SoundTxt = "SOUND ON";
}
Butt3.onPress = function () {
_parent.SoundOn = !_parent.SoundOn;
if (_parent.SoundOn) {
SoundTxt = "SOUND OFF";
} else {
SoundTxt = "SOUND ON";
}
};
Butt4.onPress = function () {
getURL ("http://www.sugar-free-games.com", "_blank");
};