Frame 1
function grow() {
if (pregnancy < love.belly._totalframes) {
pregnancy++;
love.belly.gotoAndStop(pregnancy);
love.body.gotoAndStop(pregnancy);
if ((pregnancy <= 50) && (love.dress._currentframe <= 50)) {
love.dress.gotoAndStop(pregnancy);
}
} else {
growth = 0;
}
}
function revert() {
if (pregnancy > 1) {
pregnancy--;
love.belly.gotoAndStop(pregnancy);
love.body.gotoAndStop(pregnancy);
if ((pregnancy <= 50) && (love.dress._currentframe <= 50)) {
love.dress.gotoAndStop(pregnancy);
}
} else {
growth = 0;
}
}
function timeout_fn() {
if (!timer) {
condition = "";
setState(curState.state);
delete _root.onEnterFrame;
}
timer--;
}
function setState(str) {
if (condition != "") {
return(undefined);
}
if (state != str) {
curState.state = str;
state = str;
curState.state = state;
for (var _local2 in states[str]) {
curState[_local2] = states[str][_local2];
}
if (curState.arm1 == "bellyrub") {
if (love.arm1._currentlabel.indexOf("belly") == -1) {
love.arm1.gotoAndPlay("movebelly");
} else {
love.arm1.gotoAndPlay("bellyrub");
}
} else if (love.arm1._currentlabel.indexOf(curState.arm1) == -1) {
love.arm1.gotoAndPlay("move" + curState.arm1);
}
love.mouth.gotoAndPlay(curState.mouth);
love.eye1.gotoAndPlay(curState.eye1);
love.eye2.gotoAndPlay(curState.eye2);
love.eye1.pupil._x = p1X + curState.p1X;
love.eye1.pupil._y = p1Y + curState.p1Y;
love.eye2.pupil._x = p2X + curState.p2X;
love.eye2.pupil._y = p2Y + curState.p2Y;
canBlink = curState.canBlink;
}
}
_level0.bgColor = 0;
_level0.flashWidth = 800;
_level0.flashHeight = 600;
var state = "";
var condition = "";
var states = new Array();
var pregnancy = 1;
var growth = 0;
var curState = new Object();
var canBlink = false;
var blinking = false;
var p1X = love.eye1.pupil._x;
var p1Y = love.eye1.pupil._y;
var p2X = love.eye2.pupil._x;
var p2Y = love.eye2.pupil._y;
var ripped = false;
var dressDepth = love.dress.getDepth();
var thoughts = 0;
love.belly.stop();
love.dress.stop();
love.body.stop();
states.sleeping = {eye1:"closed", eye2:"closed", mouth:"smile", arm1:"belly", canBlink:false, p1X:0, p1Y:0, p2X:0, p2Y:0};
states.pressure = {eye1:"shut", eye2:"shut", mouth:"teeth", arm1:"belly", canBlink:false, p1X:0, p1Y:0, p2X:0, p2Y:0};
states.begin = {eye1:"small", eye2:"sad", mouth:"small", arm1:"down", canBlink:true, p1X:15, p1Y:12, p2X:4, p2Y:8};
states.release = {eye1:"sad", eye2:"sad", mouth:"open", arm1:"down", canBlink:true, p1X:0, p1Y:0, p2X:0, p2Y:0};
states.wonder = {eye1:"medium", eye2:"medium", mouth:"open2", arm1:"down", canBlink:true, p1X:15, p1Y:12, p2X:4, p2Y:8};
states.relaxed = {eye1:"sad", eye2:"sad", mouth:"sad", arm1:"belly", canBlink:true, p1X:7, p1Y:6, p2X:2, p2Y:4};
states.bigger = {eye1:"open", eye2:"sad", mouth:"fast", arm1:"belly", canBlink:true, p1X:15, p1Y:12, p2X:4, p2Y:8};
states.confused = {eye1:"medium", eye2:"medium", mouth:"closed", arm1:"down", canBlink:true, p1X:7, p1Y:6, p2X:2, p2Y:4};
states.understand = {eye1:"wide", eye2:"wide", mouth:"happy2", arm1:"belly", canBlink:false, p1X:0, p1Y:0, p2X:0, p2Y:0};
states.realize = {eye1:"closed", eye2:"closed", mouth:"smile", arm1:"bellyrub", canBlink:false, p1X:7, p1Y:6, p2X:2, p2Y:4};
states.more = {eye1:"sad", eye2:"sad", mouth:"happy2", arm1:"belly", canBlink:false, p1X:7, p1Y:6, p2X:2, p2Y:4};
states.worried = {eye1:"small", eye2:"small", mouth:"open2", arm1:"belly", canBlink:false, p1X:7, p1Y:6, p2X:2, p2Y:4};
states.over = {eye1:"small", eye2:"small", mouth:"happy", arm1:"bellyrub", canBlink:true, p1X:7, p1Y:6, p2X:2, p2Y:4};
states.revert = {eye1:"wide", eye2:"wide", mouth:"sad", arm1:"belly", canBlink:true, p1X:15, p1Y:12, p2X:4, p2Y:8};
states.smaller = {eye1:"medium", eye2:"medium", mouth:"open2", arm1:"belly", canBlink:true, p1X:15, p1Y:12, p2X:4, p2Y:8};
states.almost = {eye1:"open", eye2:"open", mouth:"closed", arm1:"belly", canBlink:true, p1X:15, p1Y:12, p2X:4, p2Y:8};
setState("sleeping");
love.onEnterFrame = function () {
if (canBlink && (Math.random() > 0.99)) {
love.eye1.gotoAndPlay("blink");
love.eye2.gotoAndPlay("blink");
love.eye1.pupil._x = p1X + curState.p1X;
love.eye1.pupil._y = p1Y + curState.p1Y;
love.eye2.pupil._x = p2X + curState.p2X;
love.eye2.pupil._y = p2Y + curState.p2Y;
blinking = true;
}
if (blinking && (love.eye1._currentlabel == "endblink")) {
love.eye1.gotoAndPlay(curState.eye1);
love.eye2.gotoAndPlay(curState.eye2);
love.eye1.pupil._x = p1X + curState.p1X;
love.eye1.pupil._y = p1Y + curState.p1Y;
love.eye2.pupil._x = p2X + curState.p2X;
love.eye2.pupil._y = p2Y + curState.p2Y;
blinking = false;
}
var _local2 = growth;
if ((love.dress._currentframe >= 50) && (!ripped)) {
if (love.dress._currentframe == love.dress._totalframes) {
setState("release");
ripped = true;
love.dress.stop();
love.dress.swapDepths(love.tail.getDepth() + 1);
} else {
setState("pressure");
love.dress.play();
growth = 0;
pregnancy = 50;
}
}
if (growth == 1) {
grow();
switch (true) {
case pregnancy < 20 :
break;
case pregnancy < 50 :
setState("begin");
break;
case pregnancy < 100 :
setState("release");
break;
case pregnancy < 200 :
if ((pregnancy == 100) && (thoughts == 0)) {
condition = "";
delete _root.onEnterFrame;
love.blush.gotoAndPlay(2);
love.thought.gotoAndPlay(2);
thoughts++;
}
setState("wonder");
break;
case pregnancy == 200 :
setState("relaxed");
growth = 0;
break;
case pregnancy < 300 :
setState("bigger");
break;
case pregnancy < 350 :
setState("confused");
break;
case pregnancy < 400 :
if ((pregnancy == 350) && (thoughts == 1)) {
condition = "";
delete _root.onEnterFrame;
thoughts++;
love.thought.gotoAndPlay("idea");
}
if ((pregnancy == 399) && (thoughts == 2)) {
thoughts++;
condition = "";
delete _root.onEnterFrame;
love.thought.gotoAndPlay("love");
}
setState("understand");
if (pregnancy == 399) {
love.blush.gotoAndPlay(2);
}
break;
case pregnancy == 400 :
setState("realize");
growth = 0;
break;
case pregnancy < 500 :
setState("more");
break;
case pregnancy < 600 :
setState("worried");
break;
case pregnancy == 600 :
setState("over");
growth = 0;
}
_local2 = growth;
} else if (growth == -1) {
revert();
switch (true) {
case pregnancy == 1 :
setState("sleeping");
break;
case pregnancy < 200 :
setState("almost");
break;
case pregnancy < 400 :
setState("smaller");
break;
case pregnancy < 600 :
setState("revert");
}
}
if (!growth) {
growth = _local2;
if (pregnancy == 200) {
setState("relaxed");
} else if (pregnancy == 400) {
setState("realize");
} else if (pregnancy == 600) {
setState("over");
}
}
};
var reset = false;
_panel._plus._txt.text = "+";
_panel._minus._txt.text = "-";
_panel._expand._txt.text = "Expand";
_panel._revert._txt.text = "Revert";
_panel._info.text = "Interactive pregnant Love the fox. Drawn and programmed by Doom the wolf (http://doom-the-wolf.deviantart.com). Click 'Expand' or 'Revert' to change the size of her belly. Selecting 'continuous' will make the size change automatically. Move the camera by dragging the mouse across the screen. Zoom in or out by using the '+' and '-' buttons.";
_panel._cont_txt.text = "continuous";
_panel.onEnterFrame = function () {
if (_panel.hitTest(_root._xmouse, _root._ymouse)) {
if (Math.abs(_panel._y - 500) > 1) {
_panel._y = _panel._y + ((500 - _panel._y) * 0.4);
}
} else if (Math.abs(_panel._y - 600) > 1) {
_panel._y = _panel._y + ((600 - _panel._y) * 0.4);
}
if (growth && (_panel._cont._currentframe == 2)) {
_panel._cont_txt.text = "stop";
} else {
_panel._cont_txt.text = "continuous";
}
if (pregnancy < 200) {
_panel._expand._txt.text = "Expand";
} else if (pregnancy < 400) {
_panel._expand._txt.text = "Bigger";
} else if (pregnancy < 600) {
_panel._expand._txt.text = "More";
} else {
_panel._expand._txt.text = "Reset";
}
};
_panel._cont.onRelease = function () {
if (growth != 0) {
growth = 0;
}
_panel._cont.gotoAndStop(3 - _panel._cont._currentframe);
};
_panel._plus.onPress = function () {
_panel._plus.onEnterFrame = function () {
love._xscale = (love._yscale = love._xscale + 2);
};
};
_panel._minus.onPress = function () {
_panel._minus.onEnterFrame = function () {
if (love._xscale > 2) {
love._xscale = (love._yscale = love._xscale - 2);
} else {
delete _panel._minus.onEnterFrame;
}
};
};
_panel.onMouseUp = function () {
delete _panel._plus.onEnterFrame;
delete _panel._minus.onEnterFrame;
if (_panel._cont._currentframe == 1) {
growth = 0;
}
};
_panel._expand.onPress = function () {
if (pregnancy >= love.belly._totalframes) {
growth = 0;
reset = true;
} else {
growth = 1;
}
};
_panel._expand.onRelease = function () {
if (reset) {
growth = 0;
pregnancy = 1;
thoughts = 0;
love.belly.gotoAndStop(1);
love.dress.gotoAndStop(1);
love.body.gotoAndStop(1);
love.dress.swapDepths(dressDepth);
condition = "";
timer = 0;
delete _root.onEnterFrame;
setState("sleeping");
reset = false;
ripped = false;
}
};
_panel._expand.onReleaseOutside = function () {
reset = false;
};
_panel._revert.onPress = function () {
growth = -1;
};
love.onMouseDown = function () {
if (_panel._y > 550) {
love.startDrag();
}
};
love.onMouseUp = function () {
love.stopDrag();
};
love.belly.onPress = function () {
if ((condition == "") && (pregnancy != 50)) {
condition = "bellypoke";
state = "special";
canBlink = false;
switch (true) {
case pregnancy < 200 :
timer = 20;
if (love.thought._currentframe == 1) {
love.thought.gotoAndPlay("question");
}
love.mouth.gotoAndPlay("open2");
love.eye1.gotoAndPlay("medium");
love.eye2.gotoAndPlay("medium");
break;
case pregnancy < 400 :
timer = 30;
love.mouth.gotoAndPlay("sad");
love.eye1.gotoAndPlay("sad");
love.eye2.gotoAndPlay("sad");
love.eye1.pupil._x = p1X - 10;
love.eye1.pupil._y = p1Y + 5;
love.eye2.pupil._x = p2X - 3;
love.eye2.pupil._y = p2Y + 5;
break;
default :
timer = 30;
love.mouth.gotoAndPlay("happy");
love.eye1.gotoAndPlay("wink");
love.eye2.gotoAndPlay("small");
love.eye1.pupil._x = p1X - 10;
love.eye1.pupil._y = p1Y + 5;
love.eye2.pupil._x = p2X - 3;
love.eye2.pupil._y = p2Y + 5;
}
_root.onEnterFrame = timeout_fn;
}
};
love.body.onPress = love.belly.onPress;
love.breast1.onPress = function () {
if ((condition == "") && (love.thought._currentframe == 1)) {
condition = "breastpoke";
state = "special";
canBlink = false;
timer = 30;
if (love.dress.getDepth() > love.body.getDepth()) {
love.mouth.gotoAndPlay("open3");
love.eye1.gotoAndPlay("mad");
love.eye2.gotoAndPlay("small");
} else {
love.thought.gotoAndPlay("hey!");
love.mouth.gotoAndPlay("open3");
love.eye1.gotoAndPlay("mad2");
love.eye2.gotoAndPlay("medium");
love.eye1.pupil._x = p1X;
love.eye1.pupil._y = p1Y;
love.eye2.pupil._x = p2X;
love.eye2.pupil._y = p2Y;
}
_root.onEnterFrame = timeout_fn;
}
};
love.breast2.onPress = love.breast1.onPress;
Symbol 58 MovieClip Frame 1
_currentlabel = "open";
Symbol 58 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 58 MovieClip Frame 3
_currentlabel = "closed";
Symbol 58 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 58 MovieClip Frame 5
_currentlabel = "small";
Symbol 58 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 58 MovieClip Frame 7
_currentlabel = "blink";
Symbol 58 MovieClip Frame 11
_currentlabel = "endblink";
Symbol 58 MovieClip Frame 12
gotoAndPlay(_currentlabel);
Symbol 58 MovieClip Frame 13
_currentlabel = "wide";
Symbol 58 MovieClip Frame 14
gotoAndPlay(_currentlabel);
Symbol 58 MovieClip Frame 15
_currentlabel = "sad";
Symbol 58 MovieClip Frame 16
gotoAndPlay(_currentlabel);
Symbol 58 MovieClip Frame 17
_currentlabel = "shut";
Symbol 58 MovieClip Frame 18
gotoAndPlay(_currentlabel);
Symbol 58 MovieClip Frame 19
_currentlabel = "medium";
Symbol 58 MovieClip Frame 20
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 1
_currentlabel = "open";
Symbol 72 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 3
_currentlabel = "closed";
Symbol 72 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 5
_currentlabel = "small";
Symbol 72 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 7
_currentlabel = "blink";
Symbol 72 MovieClip Frame 11
_currentlabel = "endblink";
Symbol 72 MovieClip Frame 12
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 13
_currentlabel = "wide";
Symbol 72 MovieClip Frame 14
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 15
_currentlabel = "sad";
Symbol 72 MovieClip Frame 16
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 17
_currentlabel = "shut";
Symbol 72 MovieClip Frame 18
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 19
_currentlabel = "medium";
Symbol 72 MovieClip Frame 20
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 21
_currentlabel = "wink";
Symbol 72 MovieClip Frame 33
_currentlabel = "endwink";
Symbol 72 MovieClip Frame 34
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 36
_currentlabel = "mad";
Symbol 72 MovieClip Frame 37
gotoAndPlay(_currentlabel);
Symbol 72 MovieClip Frame 38
_currentlabel = "mad2";
Symbol 72 MovieClip Frame 39
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 1
_currentlabel = "smile";
Symbol 91 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 3
_currentlabel = "teeth";
Symbol 91 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 5
_currentlabel = "happy";
Symbol 91 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 7
_currentlabel = "closed";
Symbol 91 MovieClip Frame 8
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 9
_currentlabel = "open";
Symbol 91 MovieClip Frame 31
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 32
_currentlabel = "sad";
Symbol 91 MovieClip Frame 33
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 34
_currentlabel = "small";
Symbol 91 MovieClip Frame 35
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 37
_currentlabel = "fast";
Symbol 91 MovieClip Frame 48
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 49
_currentlabel = "open2";
Symbol 91 MovieClip Frame 50
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 51
_currentlabel = "happy2";
Symbol 91 MovieClip Frame 52
gotoAndPlay(_currentlabel);
Symbol 91 MovieClip Frame 53
_currentlabel = "open3";
Symbol 91 MovieClip Frame 54
gotoAndPlay(_currentlabel);
Symbol 100 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 1
_currentlabel = "belly";
Symbol 118 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 118 MovieClip Frame 6
_currentlabel = "movedown";
Symbol 118 MovieClip Frame 11
_currentlabel = "down";
Symbol 118 MovieClip Frame 12
gotoAndPlay(_currentlabel);
Symbol 118 MovieClip Frame 13
_currentlabel = "movebelly";
Symbol 118 MovieClip Frame 17
gotoAndPlay ("belly");
Symbol 118 MovieClip Frame 20
_currentlabel = "bellyrub";
Symbol 118 MovieClip Frame 60
gotoAndStop ("belly");
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 61
gotoAndStop (1);
Symbol 139 MovieClip Frame 80
gotoAndStop (1);
Symbol 139 MovieClip Frame 125
gotoAndStop (1);
Symbol 139 MovieClip Frame 145
gotoAndStop (1);
Symbol 139 MovieClip Frame 165
gotoAndStop (1);
Symbol 148 MovieClip Frame 1
stop();