Frame 1
function createAnimation() {
_root.attachMovie("mightyena", "mightyena", 0);
mightyena._x = mightyX;
mightyena._y = mightyY;
_eq._visible = false;
mightyClose._visible = false;
speak._visible = false;
_ok._visible = false;
_win._visible = false;
}
function solved() {
saved.data.OK = true;
saved.flush();
speak._txt.text = "Gool job! Just beautiful. Don't you love how numbers just... fit together? Click 'OK' and follow me into my room.";
answerMode = false;
isSolved = true;
}
function unsolved() {
speak._txt.text = ((("That's not right. The answer was x=" + answerPoint.x.toString()) + " and y=") + answerPoint.y.toString()) + ". Click 'OK' if you want a new question.";
answerMode = false;
}
function startQuestion() {
speak._txt.text = "Hey, I'm going to the beauty hotel! But... I only like smart guys. Do you like Math? Solve this problem and I'll let you in my room.";
}
function createQuestion() {
answerPoint.x = Math.floor(Math.random() * 50);
answerPoint.y = Math.floor(Math.random() * 50);
dist1Point.x = Math.floor(Math.random() * 11) - 5;
dist1Point.y = Math.floor(Math.random() * 11) - 5;
dist2Point.x = Math.floor(Math.random() * 11) - 5;
dist2Point.y = Math.floor(Math.random() * 11) - 5;
if ((dist1Point.x == 0) && (dist1Point.y == 0)) {
dist1Point.y = 3;
}
if ((dist2Point.x == 0) && (dist2Point.y == 0)) {
dist2Point.y = -3;
}
if ((dist1Point.x == dist2Point.x) && (dist1Point.y == dist2Point.y)) {
dist1Point.x = dist1Point.x + 2;
dist1Point.y = dist1Point.y + 1;
}
if ((dist1Point.x / dist1Point.y) == (dist2Point.x / dist2Point.y)) {
dist1Point.y = dist1Point.y + 2;
}
if ((dist1Point.y / dist1Point.x) == (dist2Point.y / dist2Point.x)) {
dist1Point.x = dist1Point.x + 2;
}
var _local1 = 2 + Math.floor(Math.random() * 3);
if (Math.random() > 0.5) {
_local1 = -_local1;
}
line1Point.x = Math.floor(answerPoint.x + (dist1Point.x * _local1));
line1Point.y = Math.floor(answerPoint.y + (dist1Point.y * _local1));
_local1 = 2 + Math.floor(Math.random() * 3);
if (Math.random() > 0.5) {
_local1 = -_local1;
}
line2Point.x = Math.floor(answerPoint.x + (dist2Point.x * _local1));
line2Point.y = Math.floor(answerPoint.y + (dist2Point.y * _local1));
_eq._txt.text = ((("Linear system:\n\n" + displayEquation(line1Point, answerPoint)) + "\n\n") + displayEquation(line2Point, answerPoint)) + "\n\nFind 'x' and 'y'";
}
function displayEquation(p1, p2) {
var _local8 = p1.x;
var _local14 = p2.x;
var _local6 = p1.y;
var _local13 = p2.y;
var _local2 = _local14 - _local8;
var _local4 = _local13 - _local6;
var _local15 = "";
var _local9;
var _local3;
var _local12;
var _local11;
var _local5;
var _local10;
var _local7;
var _local1;
if (_local2 == 0) {
_local9 = Math.abs(_local2);
_local3 = Math.abs(_local4);
_local12 = Math.abs(_local8);
_local11 = Math.abs(_local6 * _local2);
_local10 = "-1*x";
if ((_local2 * _local4) < 0) {
_local7 = "-y*";
} else if ((_local2 * _local4) > 0) {
_local7 = "+y*";
} else {
_local7 = "";
}
if (_local7.length) {
if (_local9 % _local3) {
_local7 = _local7 + ((_local9.toString() + "/") + _local3.toString());
} else {
_local7 = _local7 + Number(_local9 / _local3).toString();
}
}
if (_local11 % _local3) {
if (_local8 >= 0) {
_local1 = " + " + _local12.toString();
} else {
_local1 = " - " + _local12.toString();
}
if (((_local6 * _local2) * _local4) < 0) {
_local1 = _local1 + "+";
} else {
_local1 = _local1 + "-";
}
_local1 = _local1 + ((_local11.toString() + "/") + _local3.toString());
} else {
_local5 = _local8 - ((_local6 * _local2) / _local4);
if (_local5 < 0) {
_local1 = " - " + _local5.toString();
} else if (_local5 > 0) {
_local1 = " + " + _local5.toString();
} else {
_local1 = "";
}
}
} else {
_local9 = Math.abs(_local4);
_local3 = Math.abs(_local2);
_local12 = Math.abs(_local6);
_local11 = Math.abs(_local8 * _local4);
if ((_local2 * _local4) < 0) {
_local10 = "-x*";
} else {
_local10 = "x*";
}
if (_local9 % _local3) {
_local10 = _local10 + ((_local9.toString() + "/") + _local3.toString());
} else {
_local10 = _local10 + Number(_local9 / _local3).toString();
}
_local7 = " - y";
if (_local11 % _local3) {
if (_local6 >= 0) {
_local1 = " + " + _local12.toString();
} else {
_local1 = " - " + _local12.toString();
}
if (((_local8 * _local4) * _local2) < 0) {
_local1 = _local1 + "+";
} else {
_local1 = _local1 + "-";
}
_local1 = _local1 + ((_local11.toString() + "/") + _local3.toString());
} else {
_local5 = _local6 - ((_local8 * _local4) / _local2);
if (_local5 < 0) {
_local1 = " - " + Math.abs(_local5).toString();
} else if (_local5 > 0) {
_local1 = " + " + Math.abs(_local5).toString();
} else {
_local1 = "";
}
}
}
return(((_local10 + _local7) + _local1) + " = 0");
}
function bounceBreasts() {
b1Amplitude = b1BounceTime / MAX_BOUNCE_TIME;
var _local3 = Math.sin(b1Angle) * Number(1 - ((0.5 * size) / maxSize));
var _local5 = (-Math.cos(b1Angle)) * Number(1 - ((0.5 * size) / maxSize));
var _local1 = mightyena.breast1.transform.matrix;
_local1.c = (_local3 * MAX_BREAST1_SCALE) * b1Amplitude;
_local1.b = (_local5 * MAX_BREAST2_SCALE) * b1Amplitude;
mightyena.breast1.transform.matrix = _local1;
if (b1BounceTime > 0) {
b1BounceTime--;
b1Angle = b1Angle + b1AngleSpeed;
}
b2Amplitude = b2BounceTime / MAX_BOUNCE_TIME;
var _local2 = Math.sin(b2Angle) * Number(1 - ((0.5 * size) / maxSize));
var _local4 = Math.cos(b2Angle) * Number(1 - ((0.5 * size) / maxSize));
_local1 = mightyena.breast2.transform.matrix;
_local1.c = (_local2 * MAX_BREAST2_SCALE) * b2Amplitude;
_local1.b = (_local4 * MAX_BREAST2_SCALE) * b2Amplitude;
mightyena.breast2.transform.matrix = _local1;
if (b2BounceTime > 0) {
b2BounceTime--;
b2Angle = b2Angle + b2AngleSpeed;
}
}
function setSize() {
mightyena.breast1.gotoAndStop(size);
mightyena.breast2.gotoAndStop(size);
mightyena._bar._mask.clear();
mightyena._bar._mask.beginFill(0);
mightyena._bar._mask.moveTo(0, 0);
mightyena._bar._mask.lineTo((barWidth * size) / maxSize, 0);
mightyena._bar._mask.lineTo((barWidth * size) / maxSize, barHeight);
mightyena._bar._mask.lineTo(0, barHeight);
mightyena._bar._mask.lineTo(0, 0);
mightyena._bar._mask.endFill();
}
function setState(str) {
if ((state == str) || (condition != "")) {
return(undefined);
}
var _local1;
for (_local1 in states[str]) {
curState[_local1] = states[str][_local1];
}
curState.state = (state = str);
mightyena.eye1.gotoAndPlay(curState.eye1);
mightyena.eye2.gotoAndPlay(curState.eye2);
mightyena.mouth.gotoAndPlay(curState.mouth);
mightyena.eye1.pupil._x = p1X + curState.p1X;
mightyena.eye1.pupil._y = p1Y + curState.p1Y;
mightyena.eye2.pupil._x = p2X + curState.p2X;
mightyena.eye2.pupil._y = p2Y + curState.p2Y;
offset = curState.offset;
frequency = curState.frequency;
canBlink = curState.canBlink;
}
function react(str, timer0) {
if (!timer0) {
timer0 = 30;
}
timer = timer0;
state = "special";
var _local3 = curState.state;
condition = "";
setState(str);
condition = "react";
curState.state = _local3;
_root.onEnterFrame = function () {
if (timer <= 0) {
condition = "";
setState(curState.state);
delete this.onEnterFrame;
}
timer--;
};
}
function say(str) {
speech_mc._txt.text = "";
speech_mc.phrase = str;
speech_mc.letter = 0;
speech_mc.timer = Math.floor(str.length * 1.5) + 30;
speech_mc._visible = true;
speech_mc.onEnterFrame = function () {
if (this.letter < this.phrase.length) {
var _local2 = 0;
while (_local2 < 3) {
if (this.letter == this.phrase.length) {
break;
}
this._txt.text = this._txt.text + this.phrase.charAt(this.letter++);
_local2++;
}
} else if (this.timer <= 0) {
this.timer = 0;
this._txt.text = "";
this._visible = false;
this.timer = 0;
this.phrase = "";
this.letter = 0;
delete this.onEnterFrame;
}
this.timer--;
};
}
function updateCandles() {
var _local4 = 8;
var _local1 = 1;
while (_local1 <= 8) {
var _local3 = mightyena["flame" + _local1];
if (_local3._alpha < 5) {
_local4--;
}
_local1++;
}
var _local7 = mightyena.body.transform.colorTransform;
if (_local7.redMultiplier == 0) {
updateBed();
}
var _local6 = _local4 / 8;
var _local5 = new flash.geom.ColorTransform(_local6, _local6, _local6, 1, 0, 0, 0, 0);
var _local2;
for (_local2 in mightyena) {
if ((_local2.indexOf("flame") == -1) && (_local2.indexOf("speech") == -1)) {
mightyena[_local2].transform.colorTransform = _local5;
}
}
if (_local6 == 0) {
say("Hey! You made it all dark. Now you'll have to find the candles and turn them on again!");
}
}
function updateBed() {
if (mightyena.mighty2._visible) {
return(undefined);
}
if (mightyena.blanket1._visible) {
say("Aha! You found the candles in the dark! Here's your prize!");
} else {
say("Are you just going to play with the candles?");
}
mightyena.blanket1._visible = !mightyena.blanket1._visible;
mightyena.blanket2._visible = !mightyena.blanket2._visible;
mightyena.blanket3._visible = !mightyena.blanket3._visible;
mightyena.blankettop1._visible = !mightyena.blankettop1._visible;
mightyena.blankettop2._visible = !mightyena.blankettop2._visible;
}
function moveMightyena() {
speech_mc.timer = 0;
if (mightyena.mighty2._visible) {
mightyena.body._visible = oldVisible.body;
mightyena.breast1._visible = oldVisible.breast1;
mightyena.breast2._visible = oldVisible.breast2;
mightyena.blanket1._visible = oldVisible.blanket1;
mightyena.blanket2._visible = oldVisible.blanket2;
mightyena.blanket3._visible = oldVisible.blanket3;
mightyena.blankettop1._visible = oldVisible.blankettop1;
mightyena.blankettop2._visible = oldVisible.blankettop2;
mightyena.head._visible = oldVisible.head;
mightyena.ear1._visible = oldVisible.ear1;
mightyena.ear2._visible = oldVisible.ear2;
mightyena.eye1._visible = oldVisible.eye1;
mightyena.eye2._visible = oldVisible.eye2;
mightyena.arm1._visible = oldVisible.arm1;
mightyena.arm2._visible = oldVisible.arm2;
mightyena.leg1._visible = oldVisible.leg1;
mightyena.leg2._visible = oldVisible.leg2;
mightyena.body._visible = oldVisible.body;
mightyena.tail._visible = oldVisible.tail;
mightyena.fur._visible = oldVisible.fur;
mightyena.mouth._visible = oldVisible.mouth;
} else {
oldVisible.blanket1 = mightyena.blanket1._visible;
mightyena.blanket1._visible = false;
oldVisible.blanket2 = mightyena.blanket2._visible;
mightyena.blanket2._visible = false;
oldVisible.blanket3 = mightyena.blanket3._visible;
mightyena.blanket3._visible = false;
oldVisible.blankettop1 = mightyena.blankettop1._visible;
mightyena.blankettop1._visible = false;
oldVisible.blankettop2 = mightyena.blankettop2._visible;
mightyena.blankettop2._visible = false;
oldVisible.breast1 = mightyena.breast1._visible;
mightyena.breast1._visible = false;
oldVisible.breast2 = mightyena.breast2._visible;
mightyena.breast2._visible = false;
oldVisible.head = mightyena.head._visible;
mightyena.head._visible = false;
oldVisible.ear1 = mightyena.ear1._visible;
mightyena.ear1._visible = false;
oldVisible.ear2 = mightyena.ear2._visible;
mightyena.ear2._visible = false;
oldVisible.eye1 = mightyena.eye1._visible;
mightyena.eye1._visible = false;
oldVisible.eye2 = mightyena.eye2._visible;
mightyena.eye2._visible = false;
oldVisible.arm1 = mightyena.arm1._visible;
mightyena.arm1._visible = false;
oldVisible.arm2 = mightyena.arm2._visible;
mightyena.arm2._visible = false;
oldVisible.leg1 = mightyena.leg1._visible;
mightyena.leg1._visible = false;
oldVisible.leg2 = mightyena.leg2._visible;
mightyena.leg2._visible = false;
oldVisible.body = mightyena.body._visible;
mightyena.body._visible = false;
oldVisible.tail = mightyena.tail._visible;
mightyena.tail._visible = false;
oldVisible.fur = mightyena.fur._visible;
mightyena.fur._visible = false;
oldVisible.mouth = mightyena.mouth._visible;
mightyena.mouth._visible = false;
}
mightyena.mighty2._visible = !mightyena.mighty2._visible;
}
var lcd_stolen = new LocalConnection().domain();
if (lcd_stolen.indexOf("deviantart") == -1) {
var stolen_mc = _root.createEmptyMovieClip("stolen_mc", _root.getNextHighestDepth());
stolen_mc.createTextField("stolen_txt", 10000, 0, 0, 800, 600);
var stolen_txt = stolen_mc.stolen_txt;
stolen_txt.background = true;
stolen_txt.wordWrap = true;
stolen_txt.multiline = true;
stolen_txt.backgroundColor = 16777215 /* 0xFFFFFF */;
stolen_txt.selectable = false;
var tF = new TextFormat();
tF.size = 32;
tF.color = 16711680 /* 0xFF0000 */;
tF.font = "Arial";
tF.bold = true;
tF.align = "center";
stolen_txt.setNewTextFormat(tF);
stolen_txt.text = ("Warning: you are playing this file on\n" + lcd_stolen) + "\n\nBest go to\nhttp://doom-the-wolf.deviantart.com\n to see the original.\n\nClick to close.";
stolen_mc.onMouseDown = (stolen_mc.onPress = function () {
delete this.onMouseDown;
delete this.onPress;
this.removeMovieClip();
});
}
stop();
var mightyX = 413.1;
var mightyY = 291.8;
var answerMode = true;
var patience = 0;
var isSolved = false;
var saved = SharedObject.getLocal("mightyena");
var answerPoint = (new flash.geom.Point());
var line1Point = (new flash.geom.Point());
var line2Point = (new flash.geom.Point());
var dist1Point = (new flash.geom.Point());
var dist2Point = (new flash.geom.Point());
_eq._xans.restrict = "0123456789";
_eq._yans.restrict = "0123456789";
if (!saved.data.OK) {
createQuestion();
startQuestion();
} else {
createAnimation();
}
_ok.onRelease = function () {
if (answerMode == true) {
var _local2 = Number(_eq._xans.text);
var _local3 = Number(_eq._yans.text);
if ((_local2 == answerPoint.x) && (_local3 == answerPoint.y)) {
solved();
} else {
unsolved();
}
} else {
if (isSolved) {
_root.gotoAndPlay(1);
return(undefined);
}
createQuestion();
speak._txt.text = "Alright. Here's another one. ";
if (patience == 0) {
speak._txt.text = speak._txt.text + "Don't worry. Everyone makes mistakes. Careful not to switch any '-'s for '+'s.";
} else if (patience < 3) {
speak._txt.text = speak._txt.text + "Get some paper to work on. It will be much easier.";
} else if (patience < 6) {
speak._txt.text = speak._txt.text + "And a hint. 'x' and 'y' are both Positive Integers. Check the dictionary if you don't know what that means.";
} else if (patience < 9) {
speak._txt.text = speak._txt.text + "You can use a calculator if you want, don't be afraid.";
} else if (patience < 20) {
speak._txt.text = speak._txt.text + "Have you ever heard of a place called \"Wolfram Alpha\"?";
} else if (patience < 30) {
speak._txt.text = speak._txt.text + "Did you know Wolfram Alpha can solve this for you automatically? Search for it!";
} else {
speak._txt.text = speak._txt.text + (("Aren't you tired of just guessing the answer? Aren't " + patience.toString()) + " tries more than enough?");
}
patience++;
answerMode = true;
}
};
_win.onRelease = function () {
saved.data.OK = true;
saved.flush();
answerMode = false;
isSolved = true;
_root.gotoAndPlay(2);
};
if (!mightyena) {
return(undefined);
}
var leaving = false;
var speech_mc = mightyena.speech_mc;
var growth = 0;
var size = 1;
var maxSize = 400;
mightyena.mighty2._visible = false;
mightyena.speech_mc._visible = false;
mightyena.speech_mc._txt.text = "";
mightyena.curtain.gotoAndStop("closed");
mightyena._bar.createEmptyMovieClip("_mask", 0);
mightyena._bar._green.setMask(mightyena._bar._mask);
say("Here I am! Hey, did you know this hotel has beauty enhancement machines?\nSometimes couples come here for a little fun...\nNo, no. Not you. You're only here to watch.");
mightyena._key.onPress = function () {
if (!leaving) {
leaving = true;
say("You're leaving? If you're sure, go ahead. But I'm not letting you back in without another Math question.");
} else {
mightyena.removeMovieClip();
saved.data.OK = false;
saved.flush();
play();
}
};
mightyena.curtain.onPress = function () {
this.readyToOpen = true;
};
mightyena.curtain.onRelease = function () {
if (this.readyToOpen) {
this.play();
}
};
mightyena._plus.onPress = function () {
if (mightyena.mighty2._visible) {
return(undefined);
}
growth = 1;
mightyena._minus.gotoAndStop(1);
mightyena._plus.gotoAndStop(2);
};
mightyena._minus.onPress = function () {
if (mightyena.mighty2._visible) {
return(undefined);
}
growth = -1;
mightyena._plus.gotoAndStop(1);
mightyena._minus.gotoAndStop(2);
};
mightyena._cont.onPress = function () {
this.gotoAndStop(3 - this._currentFrame);
};
mightyena.breast1.onPress = function () {
if (!b1Amplitude) {
b1Angle = 0;
b1Amplitude = 1;
b1BounceTime = MAX_BOUNCE_TIME;
if (condition != "") {
return(undefined);
}
react("breastpoke");
say("Yes. Poke them, poke them! They're all soft and bouncy!");
}
};
mightyena.breast2.onPress = function () {
if (!b2Amplitude) {
b2Angle = 0;
b2Amplitude = 1;
b2BounceTime = MAX_BOUNCE_TIME;
if (condition != "") {
return(undefined);
}
react("breastpoke");
say("Yes. Poke them, poke them! They're all soft and bouncy!");
}
};
mightyena.body.onPress = function () {
if (condition != "") {
return(undefined);
}
if (mightyena.head.hitTest(_root._xmouse, _root._ymouse)) {
return(undefined);
}
react("bodypoke", 15);
say("Hee hee hee! Hey!");
};
var angle = 0;
var frequency = 0.1;
var offset = 0.5;
var b1Height = -5;
var b1Width = 2;
var b2Height = -5;
var b2Width = 0;
var b1X = mightyena.breast1._x;
var b1Y = mightyena.breast1._y;
var b2X = mightyena.breast2._x;
var b2Y = mightyena.breast2._y;
var bodyLength = 20;
var phrase = 0;
mightyena.onEnterFrame = function () {
var _local1 = 0.5 + ((0.5 * offset) * Math.sin(angle));
mightyena.breast1._x = b1X + (_local1 * b1Width);
mightyena.breast1._y = b1Y + (_local1 * b1Height);
mightyena.breast2._x = b2X + (_local1 * b2Width);
mightyena.breast2._y = b2Y + (_local1 * b2Height);
mightyena.body.gotoAndStop(Math.floor(bodyLength * _local1) + 1);
angle = angle + frequency;
if (growth == 1) {
size++;
setSize();
switch (true) {
case size < 20 :
break;
case size < 100 :
setState("expand");
if (phrase == 0) {
say("Ah... So good. I can feel my breasts growing.");
phrase = 1;
}
break;
case size < 200 :
setState("enjoy");
if (phrase <= 1) {
say("Oh... Can you see it yet? My chest is feeling heavier already.");
phrase = 2;
mightyena.blush.play();
}
break;
case size < 300 :
setState("bigger");
if (phrase <= 2) {
say("It feels so good. But they're getting too big.\nI don't know if I want to stop already.");
phrase = 3;
}
break;
case size < 400 :
setState("almost");
if (phrase <= 3) {
say("Oh, just look at these cuties! Will I be able to stand up?");
phrase = 4;
}
break;
case size >= maxSize :
size = maxSize;
growth = 0;
setState("over");
if (phrase > 4) {
break;
}
say("Huh... uh... such heavy breasts. They're like large, warm water balloons.");
phrase = 5;
}
} else if (growth == -1) {
size--;
setSize();
switch (true) {
case size <= 1 :
size = 1;
growth = 0;
setState("normal");
if (phrase > 0) {
phrase = 0;
say("Back to normal already?");
}
break;
case size < 200 :
if (phrase > 2) {
phrase = 2;
say("They're getting smaller? A bit too small. Pump them up a bit.");
}
break;
case size < 400 :
if (phrase <= 4) {
break;
}
phrase = 4;
say("Ah. Good. Just a little bit smaller. I like to feel beautiful, but I also like to be comfortable.");
}
}
if (canBlink && (Math.random() > 0.99)) {
mightyena.eye1.gotoAndPlay("blink");
mightyena.eye2.gotoAndPlay("blink");
blinking = true;
}
if (blinking && (mightyena.eye1._currentlabel == "endblink")) {
mightyena.eye1.gotoAndPlay(curState.eye1);
mightyena.eye2.gotoAndPlay(curState.eye2);
blinking = false;
}
bounceBreasts();
};
var MAX_BOUNCE_TIME = 30;
var b1BounceTime = 0;
var b1Angle = 0;
var b1Amplitude = 0;
var b1AngleSpeed = 0.418879020478639;
var MAX_BREAST1_SCALE = 0.05;
var b2BounceTime = 0;
var b2Angle = 0;
var b2Amplitude = 0;
var b2AngleSpeed = 0.418879020478639;
var MAX_BREAST2_SCALE = -0.05;
var barWidth = 148;
var barHeight = 23;
var state = "";
var condition = "";
var timer = 0;
var curState = new Object();
var states = new Object();
var p1X = mightyena.eye1.pupil._x;
var p1Y = mightyena.eye1.pupil._y;
var p2X = mightyena.eye2.pupil._x;
var p2Y = mightyena.eye2.pupil._y;
var blinking = false;
var canBlink = true;
states.normal = {mouth:"smile", eye1:"medium", eye2:"medium", p1X:0, p1Y:0, p2X:0, p2Y:0, offset:0.5, frequency:0.1, canBlink:true};
states.expand = {mouth:"open", eye1:"small", eye2:"small", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:1, frequency:0.1, canBlink:true};
states.enjoy = {mouth:"teeth", eye1:"closed", eye2:"closed", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:0.7, frequency:0.3, canBlink:false};
states.bigger = {mouth:"closed", eye1:"medium", eye2:"medium", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:0.5, frequency:0.2, canBlink:true};
states.almost = {mouth:"open", eye1:"open", eye2:"open", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:0.4, frequency:0.2, canBlink:true};
states.over = {mouth:"happy", eye1:"small", eye2:"small", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:0.4, frequency:0.2, canBlink:true};
states.revert = {mouth:"happy", eye1:"small", eye2:"small", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:0.4, frequency:0.2, canBlink:true};
states.breastpoke = {mouth:"happy", eye1:"small", eye2:"small", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:0.8, frequency:0.2, canBlink:false};
states.bodypoke = {mouth:"teeth2", eye1:"shut", eye2:"shut", p1X:2, p1Y:2, p2X:1, p2Y:2, offset:0.15, frequency:1.4, canBlink:false};
setState("normal");
mightyena.onMouseDown = function () {
var _local4 = _root._xmouse;
var _local3 = _root._ymouse;
if (mightyena._key.hitTest(_local4, _local3)) {
return(undefined);
}
if (mightyena.breast1.hitTest(_local4, _local3)) {
return(undefined);
}
if (mightyena.breast2.hitTest(_local4, _local3)) {
return(undefined);
}
if (mightyena._cont.hitTest(_local4, _local3)) {
return(undefined);
}
if (mightyena._plus.hitTest(_local4, _local3)) {
return(undefined);
}
if (mightyena._minus.hitTest(_local4, _local3)) {
return(undefined);
}
this.baseX = this._x;
this.baseY = this._y;
this.mX = _root._xmouse;
this.mY = _root._ymouse;
this.onMouseMove = function () {
mightyena.curtain.readyToOpen = false;
var _local4 = _root._xmouse - this.mX;
var _local3 = _root._ymouse - this.mY;
this._x = this.baseX + _local4;
this._y = this.baseY + _local3;
};
};
mightyena.onMouseUp = function () {
this.readyToOpen = false;
delete this.onMouseMove;
if (mightyena._cont._currentFrame == 1) {
growth = 0;
mightyena._plus.gotoAndStop(1);
mightyena._minus.gotoAndStop(1);
}
};
var candlesOn = 8;
var flameNum = 1;
while (flameNum <= 8) {
var flame = mightyena["flame" + flameNum];
flame._yscale = 110 - (Math.random() * 20);
flame._xscale = 100 - (Math.random() * 20);
if (Math.random() > 0.5) {
flame._xscale = -flame._xscale;
}
flame.gotoAndPlay(1 + Math.floor(Math.random() * flame._totalframes));
flame.onPress = function () {
this._alpha = 100 - this._alpha;
updateCandles();
};
flameNum++;
}
var oldVisible = {};
mightyena.card.onPress = function () {
if (size == maxSize) {
moveMightyena();
}
};
mightyena.dresser.onPress = function () {
};
mightyena.dresser.useHandCursor = false;
mightyena.blanket1.onPress = function () {
};
mightyena.blanket1.useHandCursor = false;
mightyena.leg1.onPress = function () {
if (condition != "") {
return(undefined);
}
react("bodypoke", 15);
this.gotoAndPlay(2);
say("Hey hey! That tickles! Stop it.");
};
mightyena.leg2.onPress = function () {
if (condition != "") {
return(undefined);
}
react("bodypoke", 15);
this.gotoAndPlay(2);
say("Hey hey! That tickles! Stop it.");
};
Frame 2
_root.gotoAndPlay(1);
Symbol 10 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 30
stop();
Symbol 27 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 1
this.stop();
Symbol 33 MovieClip Frame 1
this.stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
_currentlabel = "open";
Symbol 118 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 3
_currentlabel = "closed";
Symbol 118 MovieClip Frame 4
stop();
Symbol 118 MovieClip Frame 5
_currentlabel = "small";
Symbol 118 MovieClip Frame 6
stop();
Symbol 118 MovieClip Frame 7
_currentlabel = "medium";
Symbol 118 MovieClip Frame 8
stop();
Symbol 118 MovieClip Frame 9
_currentlabel = "blink";
Symbol 118 MovieClip Frame 13
_currentlabel = "endblink";
Symbol 118 MovieClip Frame 14
stop();
Symbol 118 MovieClip Frame 15
_currentlabel = "shut";
Symbol 118 MovieClip Frame 16
stop();
Symbol 130 MovieClip Frame 1
_currentlabel = "open";
Symbol 130 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 3
_currentlabel = "closed";
Symbol 130 MovieClip Frame 4
stop();
Symbol 130 MovieClip Frame 5
_currentlabel = "small";
Symbol 130 MovieClip Frame 6
stop();
Symbol 130 MovieClip Frame 7
_currentlabel = "medium";
Symbol 130 MovieClip Frame 8
stop();
Symbol 130 MovieClip Frame 9
_currentlabel = "blink";
Symbol 130 MovieClip Frame 13
_currentlabel = "endblink";
Symbol 130 MovieClip Frame 14
stop();
Symbol 130 MovieClip Frame 15
_currentlabel = "shut";
Symbol 130 MovieClip Frame 16
stop();
Symbol 138 MovieClip Frame 1
_currentlabel = "smile";
Symbol 138 MovieClip Frame 2
stop();
Symbol 138 MovieClip Frame 3
_currentlabel = "happy";
Symbol 138 MovieClip Frame 4
stop();
Symbol 138 MovieClip Frame 5
_currentlabel = "open";
Symbol 138 MovieClip Frame 6
stop();
Symbol 138 MovieClip Frame 7
_currentlabel = "teeth";
Symbol 138 MovieClip Frame 8
stop();
Symbol 138 MovieClip Frame 9
_currentlabel = "teeth2";
Symbol 138 MovieClip Frame 10
stop();
Symbol 138 MovieClip Frame 11
_currentlabel = "closed";
Symbol 138 MovieClip Frame 12
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();