Frame 9
ifFrameLoaded (67) {
gotoAndPlay(_currentframe + 2);
}
total = getBytesTotal();
partial = getBytesLoaded();
current = ("loading " + Math.floor((partial / total) * 100)) + " %";
Frame 10
gotoAndPlay(_currentframe - 1);
Frame 11
current = "Here's Mona!";
Frame 43
function playSound(thisSound, entry) {
gameSound = new Sound("soundHolder");
gameSound.attachSound(thisSound);
gameSound.setVolume(70);
gameSound.start(entry);
}
tabAnim.tabClip.gotoAndStop("off");
soundLoaded = 0;
Frame 45
loadMovie ("soundtrack.swf", soundtrackClip);
Instance of Symbol 177 MovieClip "soundtrackClip" in Frame 45
onClipEvent (data) {
_parent.soundLoaded = 1;
}
Frame 49
stop();
introSound = new Sound(introClip);
trackSound = new Sound(soundtrackClip);
Frame 66
stop();
botoxTarget._visible = false;
chemicalTarget._visible = false;
collagenTarget._visible = false;
implantTarget._visible = false;
noseTarget._visible = false;
xMouse._visible = false;
tabAnim.tabClip.gotoAndStop("default");
next = 1;
Instance of Symbol 373 MovieClip "pallette" in Frame 66
onClipEvent (mouseDown) {
trace("pallette cursor droptarget is " + icon1.newCursor._droptarget);
}
Symbol 16 MovieClip Frame 133
stop();
Symbol 35 Button
on (release) {
_parent.gotoAndPlay(_parent._currentFrame + 1);
_parent.soundtrackClip.gotoAndPlay(2);
_parent.soundControl.gotoAndPlay(2);
}
Symbol 44 Button
on (rollOver) {
gotoAndStop (6);
_parent.mediaButton.gotoAndStop("off");
_parent.forwardButton.gotoAndStop("off");
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
_parent.mediaButton.gotoAndStop(_parent.currentMedia);
_parent.forwardButton.gotoAndStop(_parent.currentForward);
}
on (release) {
_parent.gotoAndStop("solution");
if (_parent._parent.tabUp == false) {
_parent._parent.raiseTab("solution");
}
}
Symbol 56 Button
on (rollOver) {
gotoAndPlay (32);
}
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 33
stop();
_parent.gotoAndPlay("solutionPlay");
_parent._parent.raiseTab();
Symbol 65 Button
on (rollOver) {
gotoAndStop (6);
_parent.solutionButton.gotoAndStop("off");
_parent.mediaButton.gotoAndStop("off");
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
_parent.solutionButton.gotoAndStop(_parent.currentSolution);
_parent.mediaButton.gotoAndStop(_parent.currentMedia);
}
on (release) {
_parent.gotoAndStop("forward");
if (_parent._parent.tabUp == false) {
_parent._parent.raiseTab("forward");
}
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 71 Button
on (rollOver) {
gotoAndStop (6);
_parent.solutionButton.gotoAndStop("off");
_parent.forwardButton.gotoAndStop("off");
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
_parent.solutionButton.gotoAndStop(_parent.currentSolution);
_parent.forwardButton.gotoAndStop(_parent.currentForward);
}
on (release) {
_parent.gotoAndStop("media");
if (_parent._parent.tabUp == false) {
_parent._parent.raiseTab("media");
}
}
Symbol 76 MovieClip Frame 1
stop();
Symbol 79 Button
on (release) {
getURL ("http://www.apothia.com/index_home.shtml", "_blank");
}
Symbol 81 Button
on (release) {
getURL ("http://www.apothia.com/index_hotbox.shtml", "_blank");
}
Symbol 83 Button
on (release) {
getURL ("http://www.apothia.com/drcomenge.shtml", "_blank");
}
Symbol 85 Button
on (release) {
getURL ("http://www.apothia.com/drcomenge.shtml", "_blank");
}
Symbol 87 Button
on (release) {
getURL ("http://www.apothia.com/index_alist.shtml", "_blank");
}
Symbol 105 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
}
on (press) {
_parent._parent.gotoAndPlay("down");
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 112 Button
on (release) {
getURL ("http://www.apothia.com/drcomenge.shtml", "_blank");
}
Symbol 119 Button
on (rollOver) {
_parent.playSound("tick");
}
on (release) {
if ((((_parent.Name != "") && (_parent.Name != " ")) && (_parent.Email != "")) && (_parent.Email != " ")) {
_parent._parent.name = _parent.Name;
_parent._parent.email = _parent.Email;
_parent.registerAlert = "";
this.gotoAndPlay("send");
} else {
_parent.registerAlert = "Please fill in name and email.";
if ((_parent.Name == "") || (_parent.Name == " ")) {
Selection.setFocus("_parent.Name");
} else if ((_parent.Email == "") || (_parent.Email == " ")) {
Selection.setFocus("_parent.Email");
}
}
}
Symbol 120 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 2
Name = _parent.Name;
Email = _parent.Email;
Company = _parent.Company;
Phone = _parent.Phone;
ContactPhone = _parent.ContactPhone;
ContactEmail = _parent.ContactEmail;
ClientID = 2;
state = "busy";
loadVariables ("http://www.drcomenge.com/mona_interface/register.aspx", "", "POST");
counter = 0;
limit = 180;
_parent.registerAlert = "Please wait...";
Symbol 120 MovieClip Frame 3
if (state != "busy") {
if (state != "success") {
_parent.registerAlert = "Sorry, please check all fields and try again.";
this.gotoAndStop(1);
} else {
this.gotoAndStop("endLoop");
}
} else {
counter++;
if (limit < counter) {
_parent.registerAlert = "Sorry, can't connect to database. Please try again.";
this.gotoAndStop("endLoop");
}
}
Symbol 120 MovieClip Frame 4
this.gotoAndPlay("submitLoop");
Symbol 120 MovieClip Frame 5
stop();
if (limit >= counter) {
_parent.registerAlert = "Thanks for registering!";
}
Symbol 124 Button
on (release) {
getURL ("mailto:lcurran@alternasfera.com");
}
Symbol 138 Button
on (release) {
gotoAndStop (3);
_parent.ContactPhone = "NO";
}
Symbol 139 Button
on (release) {
gotoAndStop (1);
_parent.ContactPhone = "YES";
}
Symbol 140 MovieClip Frame 1
stop();
Symbol 141 Button
on (release) {
gotoAndStop (3);
_parent.ContactEmail = "NO";
}
Symbol 142 Button
on (release) {
gotoAndStop (1);
_parent.ContactEmail = "YES";
}
Symbol 143 MovieClip Frame 1
stop();
Symbol 154 Button
on (release) {
gotoAndStop (3);
_parent.RegisterMe = "NO";
}
Symbol 155 Button
on (release) {
gotoAndStop (1);
_parent.RegisterMe = "YES";
}
Symbol 156 MovieClip Frame 1
stop();
Symbol 157 Button
on (rollOver) {
_parent.playSound("tick");
}
on (release) {
if ((((((((_parent.SenderName != "") && (_parent.SenderName != " ")) && (_parent.SenderEmail != "")) && (_parent.SenderEmail != " ")) && (_parent.RecipientName != "")) && (_parent.RecipientName != " ")) && (_parent.RecipientEmail != "")) && (_parent.RecipientEmail != " ")) {
_parent._parent.name = _parent.SenderName;
_parent._parent.email = _parent.SenderEmail;
_parent.sendAlert = "";
this.gotoAndPlay("send");
} else {
_parent.sendAlert = "Please fill in all fields.";
if ((_parent.SenderName == "") || (_parent.SenderName == " ")) {
Selection.setFocus("_parent.SenderName");
} else if ((_parent.SenderEmail == "") || (_parent.SenderEmail == " ")) {
Selection.setFocus("_parent.SenderEmail");
} else if ((_parent.RecipientName == "") || (_parent.RecipientName == " ")) {
Selection.setFocus("_parent.RecipientName");
} else if ((_parent.RecipientEmail == "") || (_parent.RecipientEmail == " ")) {
Selection.setFocus("_parent.RecipientEmail");
}
}
}
Symbol 158 Button
on (rollOver) {
_parent.playSound("tick");
}
on (release) {
if ((((((((_parent.SenderName != "") && (_parent.SenderName != " ")) && (_parent.SenderEmail != "")) && (_parent.SenderEmail != " ")) && (_parent.RecipientName != "")) && (_parent.RecipientName != " ")) && (_parent.RecipientEmail != "")) && (_parent.RecipientEmail != " ")) {
_parent._parent.name = _parent.SenderName;
_parent._parent.email = _parent.SenderEmail;
_parent.sendAlert = "";
this.gotoAndPlay("send");
} else {
_parent.sendAlert = "Please fill in all fields.";
if ((_parent.SenderName == "") || (_parent.SenderName == " ")) {
Selection.setFocus("_parent.SenderName");
} else if ((_parent.SenderEmail == "") || (_parent.SenderEmail == " ")) {
Selection.setFocus("_parent.SenderEmail");
} else if ((_parent.RecipientName == "") || (_parent.RecipientName == " ")) {
Selection.setFocus("_parent.RecipientName");
} else if ((_parent.RecipientEmail == "") || (_parent.RecipientEmail == " ")) {
Selection.setFocus("_parent.RecipientEmail");
}
}
}
Symbol 159 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 2
SenderName = _parent.SenderName;
SenderEmail = _parent.SenderEmail;
RecipientName = _parent.RecipientName;
RecipientEmail = _parent.RecipientEmail;
RegisterMe = _parent.RegisterMe;
ClientID = 2;
state = "busy";
loadVariables ("http://www.drcomenge.com/mona_interface/sendToFriend.aspx", "", "POST");
counter = 0;
limit = 180;
_parent.sendAlert = "Please wait...";
Symbol 159 MovieClip Frame 3
if (state != "busy") {
if (state != "success") {
_parent.sendAlert = "Sorry, please check all fields and try again.";
this.gotoAndStop(1);
} else {
this.gotoAndStop("endLoop");
}
} else {
counter++;
if (limit < counter) {
_parent.sendAlert = "Sorry, can't connect to database. Please try again.";
this.gotoAndStop("endLoop");
}
}
Symbol 159 MovieClip Frame 4
this.gotoAndPlay("submitLoop");
Symbol 159 MovieClip Frame 5
stop();
if (limit >= counter) {
_parent.sendAlert = "Thanks for sharing Mona!";
}
Symbol 171 MovieClip Frame 1
stop();
solutionButton.gotoAndStop("defaultUp");
mediaButton.gotoAndStop("up");
forwardButton.gotoAndStop("up");
currentSolution = "defaultUp";
currentForward = "up";
currentMedia = "up";
Symbol 171 MovieClip Frame 8
solutionButton.gotoAndStop("lock");
forwardButton.gotoAndStop("up");
mediaButton.gotoAndStop("up");
currentSolution = "lock";
currentForward = "up";
currentMedia = "up";
Symbol 171 MovieClip Frame 9
solutionButton.gotoAndStop("defaultDown");
forwardButton.gotoAndStop("up");
mediaButton.gotoAndStop("up");
currentSolution = "lock";
currentForward = "up";
currentMedia = "up";
Symbol 171 MovieClip Frame 14
stop();
solutionButton.gotoAndStop("lock");
Symbol 171 MovieClip Frame 15
mediaButton.gotoAndStop("lock");
forwardButton.gotoAndStop("up");
solutionButton.gotoAndStop("up");
currentSolution = "up";
currentForward = "up";
currentMedia = "lock";
_focusrect = false;
registerAlert = "";
Name = _parent.name;
Email = _parent.email;
Company = "";
Phone = "";
ContactPhone = "YES";
ContactEmail = "YES";
if (Name == "") {
Selection.setFocus("Name");
} else {
Selection.setFocus("Company");
}
Symbol 171 MovieClip Frame 22
forwardButton.gotoAndStop("lock");
mediaButton.gotoAndStop("up");
solutionButton.gotoAndStop("up");
currentSolution = "up";
currentForward = "lock";
currentMedia = "up";
_focusrect = false;
sendAlert = "";
SenderName = _parent.name;
SenderEmail = _parent.email;
RecipientName = "";
RecipientEmail = "";
RegisterMe = "YES";
if (SenderName == "") {
Selection.setFocus("SenderName");
} else {
Selection.setFocus("RecipientName");
}
Symbol 171 MovieClip Frame 29
forwardButton.gotoAndStop("firstOff");
mediaButton.gotoAndStop("firstOff");
solutionButton.gotoAndStop("firstOff");
Symbol 172 MovieClip Frame 1
function raiseTab(tab) {
if (tab == "solution") {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(7);
}
tabUp = true;
}
stop();
tabUp = false;
name = "";
email = "";
Symbol 172 MovieClip Frame 29
stop();
_parent.pallette._visible = false;
Symbol 172 MovieClip Frame 30
_parent.pallette._visible = true;
Symbol 172 MovieClip Frame 46
stop();
tabUp = false;
tabClip.gotoAndStop("default");
Symbol 176 MovieClip Frame 1
stop();
Instance of Symbol 174 MovieClip in Symbol 176 MovieClip Frame 2
onClipEvent (mouseMove) {
if (374 < _parent._parent._xmouse) {
_parent._parent.pallette.resetCursor();
_parent._parent.pallette.resetIcons();
_parent._parent.pallette.hideTargets();
_parent._parent.xMouse._visible = false;
_parent.gotoAndStop(1);
}
}
Instance of Symbol 175 MovieClip in Symbol 176 MovieClip Frame 3
onClipEvent (mouseMove) {
if (430 < _parent._parent._ymouse) {
_parent._parent.pallette.resetCursor();
_parent._parent.pallette.resetIcons();
_parent._parent.pallette.hideTargets();
_parent._parent.xMouse._visible = false;
_parent.gotoAndStop(1);
}
}
Symbol 178 MovieClip Frame 1
stop();
Symbol 178 MovieClip Frame 2
vol = _parent[sound].getVolume();
if (vol < 100) {
_parent[sound].setVolume(vol + 0.25);
} else {
gotoAndStop (1);
}
Symbol 178 MovieClip Frame 3
gotoAndPlay (2);
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
vol = _parent[sound].getVolume();
if (0 < vol) {
_parent[sound].setVolume(vol - 2);
} else {
gotoAndStop (1);
}
Symbol 179 MovieClip Frame 3
gotoAndPlay (2);
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
if (_parent.soundLoaded == 1) {
_parent.fadeIn.sound = "trackSound";
_parent.fadeIn.gotoAndPlay(2);
_parent.fadeOut.sound = "introSound";
_parent.fadeOut.gotoAndPlay(2);
gotoAndStop (1);
}
Symbol 180 MovieClip Frame 3
gotoAndPlay (2);
Symbol 183 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
}
on (release) {
_parent.resetTarget("botox", 1);
_parent._parent.extraEffect.gotoAndStop(1);
}
Symbol 186 MovieClip Frame 1
stop();
Symbol 187 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
}
on (release) {
_parent.resetTarget("implant", 4);
_parent.resetTarget("nose", 4);
_parent._parent.extraEffect.gotoAndStop(1);
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 189 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
}
on (release) {
_parent.resetTarget("collagen", 3);
_parent._parent.extraEffect.gotoAndStop(1);
}
Symbol 190 MovieClip Frame 1
stop();
Symbol 191 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
}
on (release) {
_parent.resetTarget("chemical", 2);
_parent._parent.extraEffect.gotoAndStop(1);
}
Symbol 192 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 217 Button
on (release) {
_parent._parent.curtainClip.gotoAndPlay(2);
this.gotoAndStop(2);
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 221 Button
on (rollOver) {
_parent.botoxText.gotoAndStop(2);
}
on (rollOut) {
_parent.botoxText.gotoAndStop(1);
}
on (press) {
_parent.botoxText.gotoAndStop(1);
_parent.setCursor(1, "syringe");
_parent.setIcons(1);
_parent.setTarget("botox", "icon1");
_parent.clearButton.gotoAndStop(2);
_parent._parent.xMouse._visible = true;
}
Symbol 222 MovieClip Frame 1
stop();
max = 0;
Symbol 225 Button
on (rollOver) {
_parent.chemicalText.gotoAndStop(2);
}
on (rollOut) {
_parent.chemicalText.gotoAndStop(1);
}
on (press) {
_parent.chemicalText.gotoAndStop(1);
_parent.setCursor(2, "beakers");
_parent.setIcons(2);
_parent.setTarget("chemical", "icon2");
_parent.clearButton.gotoAndStop(2);
_parent._parent.xMouse._visible = true;
}
Symbol 226 MovieClip Frame 1
stop();
max = 0;
Symbol 229 Button
on (rollOver) {
_parent.collagenText.gotoAndStop(2);
}
on (rollOut) {
_parent.collagenText.gotoAndStop(1);
}
on (press) {
_parent.collagenText.gotoAndStop(1);
_parent.setCursor(3, "syringe2");
_parent.setIcons(3);
_parent.setTarget("collagen", "icon3");
_parent.clearButton.gotoAndStop(2);
_parent._parent.xMouse._visible = true;
}
Symbol 230 MovieClip Frame 1
stop();
max = 0;
Symbol 233 Button
on (rollOver) {
_parent.implantText.gotoAndStop(2);
}
on (rollOut) {
_parent.implantText.gotoAndStop(1);
}
on (press) {
_parent.implantText.gotoAndStop(1);
_parent.setCursor(4, "scalpel");
_parent.setIcons(4);
_parent.setTarget("implant", "icon4");
_parent.setTarget("nose", "icon4");
_parent.clearButton.gotoAndStop(2);
_parent._parent.xMouse._visible = true;
}
Symbol 234 MovieClip Frame 1
stop();
max = 0;
Symbol 235 MovieClip Frame 1
function setCursor(icon, name) {
Mouse.hide();
this["icon" + icon].swapDepths(100);
this["icon" + icon][name].duplicateMovieClip("newCursor", 1000);
this["icon" + icon].newCursor._x = this["icon" + icon].newCursor._x + 3;
this["icon" + icon].newCursor._y = this["icon" + icon].newCursor._y + 3;
this["icon" + icon].newCursor.startDrag(true);
}
function setTarget(clip, icon) {
if (_parent[clip + "Target"].max != 1) {
if (this[clip + "Level"].currentLevel == this[clip + "Level"].limit) {
_parent[clip + "Target"]._visible = false;
} else {
_parent[clip + "Target"]._visible = true;
}
_parent[clip + "Target"].icon = icon;
_parent[clip + "Target"].clip = clip + "Level";
_parent[clip + "Target"].level = this[clip + "Level"].currentLevel;
_parent[clip + "Target"].effect = clip + "Effect";
}
}
function setIcons(num) {
a = 1;
while (a < 5) {
if (a == num) {
this["icon" + a].gotoAndStop("pause");
this["icon" + a].selected = 1;
} else {
this["icon" + a].gotoAndStop("off");
}
this["clear" + a].gotoAndStop("off");
a++;
}
randomButton.gotoAndStop(2);
}
function resetIcons() {
a = 1;
while (a < 5) {
if (this["icon" + a].max != 1) {
this["icon" + a].gotoAndStop(1);
this["icon" + a].selected = 0;
}
this["clear" + a].gotoAndStop(1);
a++;
}
randomButton.gotoAndStop(1);
}
function setMeter(meter, frame) {
this["meter" + meter].gotoAndStop(frame + 1);
this["count" + meter] = this["count" + meter] - 1;
}
function resetMeter(meter) {
this["meter" + meter].gotoAndStop(this["meter" + meter]._currentFrame - 1);
this["count" + meter] = this["count" + meter] + 1;
}
function randomMona() {
resetTarget("botox", 1);
resetTarget("chemical", 2);
resetTarget("collagen", 3);
resetTarget("implant", 4);
resetTarget("nose", 4);
r = 0;
while (r < randomArray.length) {
thisTarget = randomArray[r];
randNum = random(this[thisTarget + "Level"].limit + 1);
if (randNum == this["random" + r]) {
randNum = random(this[thisTarget + "Level"].limit + 1);
}
this["random" + r] = randNum;
if (0 < randNum) {
_parent[thisTarget + "Effect"].gotoAndPlay("effect" + randNum);
this[thisTarget + "Level"].currentLevel = randNum;
if (r < 3) {
if (this[thisTarget + "Level"].currentLevel >= this[thisTarget + "Level"].limit) {
this["icon" + (r + 1)].gotoAndStop("off");
this["icon" + (r + 1)].max = 1;
trace((("icon" + (r + 1)) + ".max = ") + this["icon" + (r + 1)].max);
}
}
if (r == 4) {
if ((implantLevel.currentLevel == implantLevel.limit) && (noseLevel.currentLevel == noseLevel.limit)) {
this.icon4.gotoAndStop("off");
this.icon4.max = 1;
}
if (implantLevel.currentLevel == implantLevel.limit) {
_parent.implantTarget._visible = false;
trace("implant off");
}
if (noseLevel.currentLevel == noseLevel.limit) {
_parent.noseTarget._visible = false;
trace("nose off");
}
}
if (r == 5) {
if (3 < randNum) {
resetTarget("botox", 1);
this.icon1.gotoAndStop("off");
this.icon1.max = 1;
} else if (randNum == 3) {
_parent.noseTarget._visible = false;
noseLevel.currentLevel = noseLevel.limit;
}
}
}
r++;
}
}
function resetCursor() {
d = 1;
while (4 >= d) {
this["icon" + d].newCursor.removeMovieClip();
d++;
}
Mouse.show();
}
function hideTargets() {
e = 0;
while (e < treatments.length) {
_parent[treatments[e] + "Target"]._visible = false;
e++;
}
}
function resetAll() {
b = 0;
while (b < treatments.length) {
_parent[treatments[b] + "Effect"].gotoAndStop(1);
this[treatments[b] + "Level"].currentLevel = 0;
this[treatments[b] + "Level"].firstClick = 0;
_parent[treatments[b] + "Target"].gotoAndStop(1);
_parent[target + "Target"].max = 0;
_parent[target + "Target"].level = 0;
_parent[target + "Target"]._visible = false;
b++;
}
c = 1;
while (treatments.length >= c) {
this["icon" + c].gotoAndStop(1);
this["icon" + c].max = 0;
this["meter" + c].gotoAndStop(1);
this["count" + c] = 0;
c++;
}
clearButton.gotoAndStop(1);
}
function resetTarget(target, iconNum) {
_parent[target + "Effect"].gotoAndStop(1);
this[target + "Level"].currentLevel = 0;
this[target + "Level"].firstClick = 0;
_parent[target + "Target"].gotoAndStop(1);
_parent[target + "Target"].max = 0;
_parent[target + "Target"].level = 0;
_parent[target + "Target"]._visible = false;
this["icon" + iconNum].gotoAndStop(1);
this["icon" + iconNum].selected = 0;
this["icon" + iconNum].max = 0;
this["meter" + iconNum].gotoAndStop(1);
this["count" + iconNum] = 0;
}
function startCursorControl(target, clip, icon, effect) {
trace("cursorControl");
_parent.cursorControl.target = target;
_parent.cursorControl.targetClip = target.substring(1);
_parent.cursorControl.clip = clip;
_parent.cursorControl.icon = icon;
_parent.cursorControl.effect = effect;
_parent.cursorControl.gotoAndPlay(2);
}
function LevelClip(limit) {
this.firstClick = 0;
this.currentLevel = 0;
this.limit = limit;
this.plus = increaseLevel;
this.minus = decreaseLevel;
this.max = checkLimit;
}
function increaseLevel() {
if (this.currentLevel < this.limit) {
this.currentLevel = this.currentLevel + 1;
trace("add to level");
}
}
function decreaseLevel() {
if (0 < this.currentLevel) {
this.currentLevel = this.currentLevel - 1;
trace("reset level");
}
}
function checkLimit() {
if (this.currentLevel == this.limit) {
return(true);
}
return(false);
}
treatments = new Array("botox", "chemical", "collagen", "implant", "nose");
randomArray = new Array("botox", "chemical", "collagen", "implant", "nose", "extra");
botoxLevel = new LevelClip(5);
chemicalLevel = new LevelClip(3);
collagenLevel = new LevelClip(6);
implantLevel = new LevelClip(6);
noseLevel = new LevelClip(5);
extraLevel = new LevelClip(6);
count1 = botoxLevel.limit;
count2 = chemicalLevel.limit;
count3 = collagenLevel.limit;
count4 = implantLevel.limit;
count5 = noseLevel.limit;
count6 = extraLevel.limit;
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 2
play();
Symbol 251 MovieClip Frame 9
stop();
Symbol 251 MovieClip Frame 10
play();
Symbol 251 MovieClip Frame 17
stop();
Symbol 251 MovieClip Frame 18
play();
Symbol 251 MovieClip Frame 25
stop();
Symbol 251 MovieClip Frame 26
play();
Symbol 251 MovieClip Frame 33
stop();
Symbol 251 MovieClip Frame 34
play();
Symbol 251 MovieClip Frame 41
stop();
Symbol 270 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 2
play();
Symbol 270 MovieClip Frame 9
stop();
Symbol 270 MovieClip Frame 10
play();
Symbol 270 MovieClip Frame 17
stop();
Symbol 270 MovieClip Frame 18
play();
Symbol 270 MovieClip Frame 25
stop();
Symbol 270 MovieClip Frame 26
play();
Symbol 270 MovieClip Frame 33
stop();
Symbol 270 MovieClip Frame 34
play();
Symbol 270 MovieClip Frame 41
stop();
Symbol 270 MovieClip Frame 42
play();
Symbol 270 MovieClip Frame 49
stop();
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 2
play();
Symbol 288 MovieClip Frame 9
stop();
Symbol 288 MovieClip Frame 10
play();
Symbol 288 MovieClip Frame 17
stop();
Symbol 288 MovieClip Frame 18
play();
Symbol 288 MovieClip Frame 25
stop();
Symbol 288 MovieClip Frame 26
play();
Symbol 288 MovieClip Frame 33
stop();
Symbol 288 MovieClip Frame 34
play();
Symbol 288 MovieClip Frame 41
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 2
play();
Symbol 307 MovieClip Frame 9
stop();
Symbol 307 MovieClip Frame 10
play();
Symbol 307 MovieClip Frame 17
stop();
Symbol 307 MovieClip Frame 18
play();
Symbol 307 MovieClip Frame 25
stop();
Symbol 307 MovieClip Frame 26
play();
Symbol 307 MovieClip Frame 33
stop();
Symbol 307 MovieClip Frame 34
play();
Symbol 307 MovieClip Frame 41
stop();
Symbol 307 MovieClip Frame 42
play();
Symbol 307 MovieClip Frame 49
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 3
stop();
Symbol 320 MovieClip Frame 5
stop();
Symbol 320 MovieClip Frame 7
stop();
Symbol 320 MovieClip Frame 9
stop();
Symbol 320 MovieClip Frame 11
stop();
Symbol 320 MovieClip Frame 13
stop();
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
play();
Symbol 323 MovieClip Frame 9
stop();
Symbol 323 MovieClip Frame 10
play();
Symbol 323 MovieClip Frame 17
stop();
Symbol 323 MovieClip Frame 18
play();
Symbol 323 MovieClip Frame 25
stop();
Symbol 323 MovieClip Frame 26
play();
Symbol 323 MovieClip Frame 33
stop();
Symbol 323 MovieClip Frame 34
play();
Symbol 323 MovieClip Frame 41
stop();
Symbol 328 Button
on (rollOver) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x + 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y - 5;
}
on (rollOut) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
}
on (press) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
_parent.pallette[clip].plus();
level++;
_parent[effect].gotoAndPlay("effect" + level);
}
on (release, releaseOutside) {
if (level == _parent.pallette[clip].limit) {
_parent.pallette[icon].gotoAndStop("off");
_parent.pallette[icon].max = 1;
_parent.pallette[icon].newCursor.removeMovieClip();
Mouse.show();
this._visible = false;
}
}
Symbol 335 Button
on (rollOver) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x + 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y - 5;
}
on (rollOut) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
}
on (press) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
_parent.pallette[clip].plus();
level++;
_parent[effect].gotoAndPlay("effect" + level);
}
on (release, releaseOutside) {
if (level == _parent.pallette[clip].limit) {
_parent.pallette[icon].gotoAndStop("off");
_parent.pallette[icon].max = 1;
_parent.pallette[icon].newCursor.removeMovieClip();
Mouse.show();
this._visible = false;
}
}
Symbol 340 Button
on (rollOver) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x + 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y - 5;
}
on (rollOut) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
}
on (press) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
_parent.pallette[clip].plus();
level++;
_parent[effect].gotoAndPlay("effect" + level);
}
on (release, releaseOutside) {
if (level == _parent.pallette[clip].limit) {
_parent.pallette[icon].gotoAndStop("off");
_parent.pallette[icon].max = 1;
_parent.pallette[icon].newCursor.removeMovieClip();
Mouse.show();
this._visible = false;
}
}
Symbol 346 Button
on (rollOver) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x + 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y - 5;
}
on (rollOut) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
}
on (press) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
_parent.pallette[clip].plus();
level++;
if (_parent.pallette[clip].limit < level) {
level = _parent.pallette[clip].limit;
} else {
_parent[effect].gotoAndPlay("effect" + level);
}
}
on (release, releaseOutside) {
if ((level + _parent.noseTarget.level) == (_parent.pallette[clip].limit + _parent.pallette.noseLevel.limit)) {
_parent.pallette[icon].gotoAndStop("off");
_parent.pallette[icon].max = 1;
_parent.pallette[icon].newCursor.removeMovieClip();
Mouse.show();
this._visible = false;
} else if (level == _parent.pallette[clip].limit) {
this.max = 1;
this._visible = false;
}
}
Symbol 353 Button
on (rollOver) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x + 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y - 5;
}
on (rollOut) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
}
on (press) {
_parent.pallette[icon].newCursor._x = _parent.pallette[icon].newCursor._x - 5;
_parent.pallette[icon].newCursor._y = _parent.pallette[icon].newCursor._y + 5;
_parent.pallette[clip].plus();
level++;
if (_parent.pallette[clip].limit < level) {
level = _parent.pallette[clip].limit;
} else {
_parent[effect].gotoAndPlay("effect" + level);
}
}
on (release, releaseOutside) {
if ((level + _parent.implantTarget.level) == (_parent.pallette[clip].limit + _parent.pallette.implantLevel.limit)) {
_parent.pallette[icon].gotoAndStop("off");
_parent.pallette[icon].max = 1;
_parent.pallette[icon].newCursor.removeMovieClip();
Mouse.show();
this._visible = false;
} else if (level == _parent.pallette[clip].limit) {
this.max = 1;
this._visible = false;
}
}
Symbol 367 MovieClip Frame 75
stop();
_parent.gotoAndPlay(_parent._currentFrame + 1);
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
a = 1;
while (a < 5) {
_parent.pallette["clear" + a].gotoAndStop("off");
a++;
}
Symbol 368 MovieClip Frame 12
stop();
_parent.pallette.randomMona();
Symbol 368 MovieClip Frame 30
tempNum = random(3) + 1;
_parent.playSound("reaction" + tempNum);
Symbol 368 MovieClip Frame 37
_parent.pallette.randomButton.gotoAndStop(1);
a = 1;
while (a < 5) {
_parent.pallette["clear" + a].gotoAndStop(1);
a++;
}
this.gotoAndStop(1);
Symbol 370 Button
on (rollOver) {
_parent.mouseControl.gotoAndStop(2);
}
Symbol 371 Button
on (rollOver) {
_parent.mouseControl.gotoAndStop(3);
}
Symbol 373 MovieClip Frame 1
function setCursor(icon, name) {
Mouse.hide();
this["icon" + icon].swapDepths(100);
this["icon" + icon][name].duplicateMovieClip("newCursor", 1000);
this["icon" + icon].newCursor._x = this["icon" + icon].newCursor._x + 3;
this["icon" + icon].newCursor._y = this["icon" + icon].newCursor._y + 3;
this["icon" + icon].newCursor.startDrag(true);
}
function setTarget(clip, icon) {
if (_parent[clip + "Target"].max != 1) {
if (this[clip + "Level"].currentLevel == this[clip + "Level"].limit) {
_parent[clip + "Target"]._visible = false;
} else {
_parent[clip + "Target"]._visible = true;
}
_parent[clip + "Target"].icon = icon;
_parent[clip + "Target"].clip = clip + "Level";
_parent[clip + "Target"].level = this[clip + "Level"].currentLevel;
_parent[clip + "Target"].effect = clip + "Effect";
}
}
function setIcons(num) {
a = 1;
while (a < 5) {
if (a == num) {
this["icon" + a].gotoAndStop("pause");
this["icon" + a].selected = 1;
} else {
this["icon" + a].gotoAndStop("off");
}
this["clear" + a].gotoAndStop("off");
a++;
}
randomButton.gotoAndStop(2);
}
function resetIcons() {
a = 1;
while (a < 5) {
if (this["icon" + a].max != 1) {
this["icon" + a].gotoAndStop(1);
this["icon" + a].selected = 0;
}
this["clear" + a].gotoAndStop(1);
a++;
}
randomButton.gotoAndStop(1);
}
function setMeter(meter, frame) {
this["meter" + meter].gotoAndStop(frame + 1);
this["count" + meter] = this["count" + meter] - 1;
}
function resetMeter(meter) {
this["meter" + meter].gotoAndStop(this["meter" + meter]._currentFrame - 1);
this["count" + meter] = this["count" + meter] + 1;
}
function randomMona() {
resetTarget("botox", 1);
resetTarget("chemical", 2);
resetTarget("collagen", 3);
resetTarget("implant", 4);
resetTarget("nose", 4);
r = 0;
while (r < randomArray.length) {
thisTarget = randomArray[r];
randNum = random(this[thisTarget + "Level"].limit + 1);
if (randNum == this["random" + r]) {
randNum = random(this[thisTarget + "Level"].limit + 1);
}
this["random" + r] = randNum;
if (0 < randNum) {
_parent[thisTarget + "Effect"].gotoAndPlay("effect" + randNum);
this[thisTarget + "Level"].currentLevel = randNum;
if (r < 3) {
if (this[thisTarget + "Level"].currentLevel >= this[thisTarget + "Level"].limit) {
this["icon" + (r + 1)].gotoAndStop("off");
this["icon" + (r + 1)].max = 1;
trace((("icon" + (r + 1)) + ".max = ") + this["icon" + (r + 1)].max);
}
}
if (r == 4) {
if ((implantLevel.currentLevel == implantLevel.limit) && (noseLevel.currentLevel == noseLevel.limit)) {
this.icon4.gotoAndStop("off");
this.icon4.max = 1;
}
if (implantLevel.currentLevel == implantLevel.limit) {
_parent.implantTarget._visible = false;
trace("implant off");
}
if (noseLevel.currentLevel == noseLevel.limit) {
_parent.noseTarget._visible = false;
trace("nose off");
}
}
if (r == 5) {
if (3 < randNum) {
resetTarget("botox", 1);
this.icon1.gotoAndStop("off");
this.icon1.max = 1;
} else if (randNum == 3) {
_parent.noseTarget._visible = false;
noseLevel.currentLevel = noseLevel.limit;
}
}
}
r++;
}
}
function resetCursor() {
d = 1;
while (4 >= d) {
this["icon" + d].newCursor.removeMovieClip();
d++;
}
Mouse.show();
}
function hideTargets() {
e = 0;
while (e < treatments.length) {
_parent[treatments[e] + "Target"]._visible = false;
e++;
}
}
function resetAll() {
b = 0;
while (b < treatments.length) {
_parent[treatments[b] + "Effect"].gotoAndStop(1);
this[treatments[b] + "Level"].currentLevel = 0;
this[treatments[b] + "Level"].firstClick = 0;
_parent[treatments[b] + "Target"].gotoAndStop(1);
_parent[target + "Target"].max = 0;
_parent[target + "Target"].level = 0;
_parent[target + "Target"]._visible = false;
b++;
}
c = 1;
while (treatments.length >= c) {
this["icon" + c].gotoAndStop(1);
this["icon" + c].max = 0;
this["meter" + c].gotoAndStop(1);
this["count" + c] = 0;
c++;
}
clearButton.gotoAndStop(1);
}
function resetTarget(target, iconNum) {
_parent[target + "Effect"].gotoAndStop(1);
this[target + "Level"].currentLevel = 0;
this[target + "Level"].firstClick = 0;
_parent[target + "Target"].gotoAndStop(1);
_parent[target + "Target"].max = 0;
_parent[target + "Target"].level = 0;
_parent[target + "Target"]._visible = false;
this["icon" + iconNum].gotoAndStop(1);
this["icon" + iconNum].selected = 0;
this["icon" + iconNum].max = 0;
this["meter" + iconNum].gotoAndStop(1);
this["count" + iconNum] = 0;
}
function startCursorControl(target, clip, icon, effect) {
trace("cursorControl");
_parent.cursorControl.target = target;
_parent.cursorControl.targetClip = target.substring(1);
_parent.cursorControl.clip = clip;
_parent.cursorControl.icon = icon;
_parent.cursorControl.effect = effect;
_parent.cursorControl.gotoAndPlay(2);
}
function LevelClip(limit) {
this.firstClick = 0;
this.currentLevel = 0;
this.limit = limit;
this.plus = increaseLevel;
this.minus = decreaseLevel;
this.max = checkLimit;
}
function increaseLevel() {
if (this.currentLevel < this.limit) {
this.currentLevel = this.currentLevel + 1;
trace("add to level");
}
}
function decreaseLevel() {
if (0 < this.currentLevel) {
this.currentLevel = this.currentLevel - 1;
trace("reset level");
}
}
function checkLimit() {
if (this.currentLevel == this.limit) {
return(true);
}
return(false);
}
treatments = new Array("botox", "chemical", "collagen", "implant", "nose");
randomArray = new Array("botox", "chemical", "collagen", "implant", "nose", "extra");
botoxLevel = new LevelClip(5);
chemicalLevel = new LevelClip(3);
collagenLevel = new LevelClip(6);
implantLevel = new LevelClip(6);
noseLevel = new LevelClip(5);
extraLevel = new LevelClip(6);
count1 = botoxLevel.limit;
count2 = chemicalLevel.limit;
count3 = collagenLevel.limit;
count4 = implantLevel.limit;
count5 = noseLevel.limit;
count6 = extraLevel.limit;
Symbol 376 Button
on (rollOver) {
gotoAndStop (2);
}
on (rollOut, releaseOutside) {
gotoAndStop (1);
}
on (release) {
introLevel = _parent.introSound.getVolume();
trackLevel = _parent.trackSound.getVolume();
_parent.introSound.setVolume(0);
_parent.trackSound.setVolume(0);
gotoAndStop (3);
}
Symbol 379 Button
on (rollOver) {
gotoAndStop (4);
}
on (rollOut, releaseOutside) {
gotoAndStop (3);
}
on (release) {
_parent.introSound.setVolume(introLevel);
_parent.trackSound.setVolume(trackLevel);
gotoAndStop (1);
}
Symbol 380 MovieClip Frame 1
stop();