Frame 1
function grow() {
if (pregnancy < cynder.pregnant._totalframes) {
pregnancy++;
cynder.pregnant.gotoAndStop(pregnancy);
} else {
growth = 0;
}
}
function revert() {
if (pregnancy > 1) {
pregnancy--;
cynder.pregnant.gotoAndStop(pregnancy);
} else {
growth = 0;
}
}
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];
}
cynder.eye.gotoAndPlay(curState.eye);
cynder.mouth.gotoAndPlay(curState.mouth);
if (((curState.frontleg1 == "up") && (cynder.frontleg1._currentlabel != "up")) && (cynder.frontleg1._currentlabel != "moveup")) {
cynder.frontleg1.gotoAndPlay("moveup");
cynder.pawchain1.gotoAndPlay("moveup");
} else if (((curState.frontleg1 == "down") && (cynder.frontleg1._currentlabel != "down")) && (cynder.frontleg1._currentlabel != "movedown")) {
cynder.frontleg1.gotoAndPlay("movedown");
cynder.pawchain1.gotoAndPlay("movedown");
} else if (curState.frontleg1 == "bellyrub") {
if ((cynder.frontleg1._currentlabel != "up") && (cynder.frontleg1._currentlabel != "moveup")) {
cynder.frontleg1.gotoAndPlay(curState.frontleg1);
cynder.pawchain1.gotoAndPlay(curState.frontleg1);
}
} else {
cynder.frontleg1.gotoAndPlay(curState.frontleg1);
cynder.pawchain1.gotoAndPlay(curState.frontleg1);
}
cynder.front.gotoAndPlay(curState.front);
cynder.eye.pupil._x = pX + curState._x;
cynder.eye.pupil._y = pY + curState._y;
canBlink = curState.canBlink;
}
}
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 pX = cynder.eye.pupil._x;
var pY = cynder.eye.pupil._y;
cynder.pregnant.stop();
states.sleeping = {eye:"closed", mouth:"closed", frontleg1:"down", front:"breathing", _x:0, _y:0, canBlink:false};
states.awaken = {eye:"small", mouth:"breathing", frontleg1:"down", front:"breathing", _x:10, _y:0, canBlink:true};
states.realize = {eye:"big", mouth:"open", frontleg1:"up", front:"faster", _x:10, _y:0, canBlink:true};
states.relaxed = {eye:"small", mouth:"smile", frontleg1:"up", front:"breathing", _x:5, _y:5, canBlink:true};
states.shocked = {eye:"wide", mouth:"fast", frontleg1:"down", front:"fast", _x:12, _y:0, canBlink:true};
states.worried = {eye:"sad", mouth:"open", frontleg1:"bellyrub", front:"fast", _x:0, _y:0, canBlink:true};
states.over = {eye:"small", mouth:"happy", frontleg1:"bellyrub", front:"faster", _x:5, _y:-3, canBlink:true};
states.revert = {eye:"medium", mouth:"breathing", frontleg1:"up", front:"breathing", _x:10, _y:0, canBlink:true};
states.almost = {eye:"open", mouth:"smile", frontleg1:"down", front:"breathing", _x:-2, _y:-2, canBlink:true};
setState("sleeping");
cynder.onEnterFrame = function () {
if (blinking && (cynder.eye._currentlabel == "endblink")) {
blinking = false;
cynder.eye.gotoAndPlay(curState.eye);
cynder.eye.pupil._x = pX + curState._x;
cynder.eye.pupil._y = pY + curState._y;
}
if (canBlink && (Math.random() > 0.99)) {
blinking = true;
cynder.eye.gotoAndPlay("blink");
cynder.eye.pupil._x = pX + curState._x;
cynder.eye.pupil._y = pY + curState._y;
}
if ((Math.random() > 0.999) && (cynder.tail._currentframe == 1)) {
cynder.tail.gotoAndPlay("move");
}
if (growth == 1) {
grow();
switch (true) {
case pregnancy < 20 :
break;
case pregnancy < 100 :
setState("awaken");
break;
case pregnancy < 200 :
if (pregnancy == 100) {
cynder.drop.gotoAndPlay(2);
}
setState("realize");
break;
case pregnancy == 200 :
cynder.drop.gotoAndStop(1);
setState("relaxed");
growth = 0;
break;
case pregnancy < 300 :
switch (pregnancy) {
case 210 :
cynder.drop.gotoAndPlay(2);
break;
case 220 :
cynder.drop2.gotoAndPlay(2);
break;
case 230 :
cynder.drop3.gotoAndPlay(2);
break;
case 240 :
cynder.drop4.gotoAndPlay(2);
break;
case 250 :
cynder.drop5.gotoAndPlay(2);
}
setState("shocked");
break;
case pregnancy < 400 :
setState("worried");
break;
case pregnancy == 400 :
setState("over");
growth = 0;
}
} else if (growth == -1) {
revert();
cynder.drop.gotoAndStop(1);
cynder.drop2.gotoAndStop(1);
cynder.drop3.gotoAndStop(1);
cynder.drop4.gotoAndStop(1);
cynder.drop5.gotoAndStop(1);
switch (true) {
case pregnancy == 1 :
setState("sleeping");
break;
case pregnancy < 200 :
setState("almost");
break;
case pregnancy < 400 :
setState("revert");
}
}
if ((pregnancy == 200) && (growth == 1)) {
setState("relaxed");
} else if (pregnancy == 400) {
setState("over");
}
};
_panel._plus._txt.text = "+";
_panel._minus._txt.text = "-";
_panel._expand._txt.text = "Expand";
_panel._revert._txt.text = "Revert";
_panel._info.text = "Interactive pregnant Cynder. 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";
}
};
_panel._cont.onRelease = function () {
if (growth != 0) {
growth = 0;
}
_panel._cont.gotoAndStop(3 - _panel._cont._currentframe);
};
_panel._plus.onPress = function () {
_panel._plus.onEnterFrame = function () {
cynder._xscale = (cynder._yscale = cynder._xscale + 2);
};
};
_panel._minus.onPress = function () {
_panel._minus.onEnterFrame = function () {
if (cynder._xscale > 2) {
cynder._xscale = (cynder._yscale = cynder._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 () {
growth = 1;
};
_panel._revert.onPress = function () {
growth = -1;
};
cynder.onMouseDown = function () {
if (_panel._y > 550) {
cynder.startDrag();
}
};
cynder.onMouseUp = function () {
cynder.stopDrag();
};
var timer = 0;
var rub = 0;
cynder.pregnant.onRollOver = function () {
if (((condition == "") && (pregnancy > 100)) && (!(rub % 3))) {
cynder.mouth.gotoAndPlay("happy");
cynder.eye.gotoAndPlay("medium");
cynder.eye.pupil._x = pX + 2;
cynder.eye.pupil._y = pY + 5;
cynder.front.gotoAndPlay("fast");
curState._x = 2;
curState._y = 5;
curState.eye = "medium";
timer = 30;
state = "special";
condition = "bellyrub";
_root.onEnterFrame = function () {
if (!timer) {
condition = "";
setState(curState.state);
delete _root.onEnterFrame;
}
timer--;
};
}
rub++;
};
cynder.pregnant.onPress = function () {
if ((condition == "") && (pregnancy > 100)) {
cynder.mouth.gotoAndPlay("open2");
cynder.eye.gotoAndPlay("mad");
cynder.frontwing.gotoAndPlay("flap");
cynder.eye.pupil._x = pX + 2;
cynder.eye.pupil._y = pY + 5;
cynder.front.gotoAndPlay("fast");
curState._x = 2;
curState._y = 5;
curState.eye = "mad";
timer = 30;
state = "special";
condition = "bellypoke";
_root.onEnterFrame = function () {
if (!timer) {
condition = "";
setState(curState.state);
delete _root.onEnterFrame;
}
timer--;
};
}
};
cynder.mouth.onRollOver = function () {
if ((condition == "") && (!(rub % 3))) {
cynder.mouth.gotoAndPlay("smile");
cynder.eye.gotoAndPlay("closed");
cynder.tail.gotoAndPlay("move");
canBlink = false;
timer = 30;
state = "special";
condition = "facerub";
_root.onEnterFrame = function () {
if (!timer) {
condition = "";
setState(curState.state);
delete _root.onEnterFrame;
}
timer--;
};
}
rub++;
};
cynder.mouth.onPress = function () {
if (condition == "") {
cynder.mouth.gotoAndPlay("fast");
cynder.front.gotoAndPlay("fast");
cynder.eye.gotoAndPlay("mad");
cynder.eye.pupil._x = pX + 2;
cynder.eye.pupil._y = pY + 5;
canBlink = false;
timer = 22;
state = "special";
condition = "facepoke";
_root.onEnterFrame = function () {
if (!timer) {
condition = "";
setState(curState.state);
delete _root.onEnterFrame;
}
timer--;
};
}
};
Symbol 16 MovieClip Frame 1
stop();
Symbol 21 MovieClip Frame 1
stop();
Symbol 40 MovieClip Frame 5
_currentlabel = "breathing";
Symbol 40 MovieClip Frame 66
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 70
_currentlabel = "faster";
Symbol 40 MovieClip Frame 104
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 108
_currentlabel = "fast";
Symbol 40 MovieClip Frame 130
gotoAndPlay(_currentlabel);
Symbol 73 MovieClip Frame 1
_currentlabel = "down";
Symbol 73 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 73 MovieClip Frame 4
_currentlabel = "moveup";
Symbol 73 MovieClip Frame 10
_currentlabel = "up";
Symbol 73 MovieClip Frame 11
gotoAndPlay(_currentlabel);
Symbol 73 MovieClip Frame 13
_currentlabel = "moveup";
Symbol 73 MovieClip Frame 19
gotoAndPlay ("down");
Symbol 73 MovieClip Frame 21
_currentlabel = "bellyrub";
Symbol 73 MovieClip Frame 62
gotoAndPlay ("down");
Symbol 86 MovieClip Frame 1
_currentlabel = "down";
Symbol 86 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 86 MovieClip Frame 4
_currentlabel = "moveup";
Symbol 86 MovieClip Frame 10
_currentlabel = "up";
Symbol 86 MovieClip Frame 11
gotoAndPlay(_currentlabel);
Symbol 86 MovieClip Frame 13
_currentlabel = "movedown";
Symbol 86 MovieClip Frame 19
gotoAndPlay ("down");
Symbol 86 MovieClip Frame 21
_currentlabel = "bellyrub";
Symbol 86 MovieClip Frame 62
gotoAndPlay ("down");
Symbol 113 MovieClip Frame 1
_currentlabel = "closed";
Symbol 113 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 113 MovieClip Frame 3
_currentlabel = "smile";
Symbol 113 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 113 MovieClip Frame 5
_currentlabel = "open";
Symbol 113 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 113 MovieClip Frame 7
_currentlabel = "happy";
Symbol 113 MovieClip Frame 8
gotoAndPlay(_currentlabel);
Symbol 113 MovieClip Frame 9
_currentlabel = "open2";
Symbol 113 MovieClip Frame 10
gotoAndPlay(_currentlabel);
Symbol 113 MovieClip Frame 14
_currentlabel = "breathing";
Symbol 113 MovieClip Frame 75
gotoAndPlay(_currentlabel);
Symbol 113 MovieClip Frame 77
_currentlabel = "fast";
Symbol 113 MovieClip Frame 99
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 1
_currentlabel = "open";
Symbol 126 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 3
_currentlabel = "big";
Symbol 126 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 5
_currentlabel = "closed";
Symbol 126 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 7
_currentlabel = "small";
Symbol 126 MovieClip Frame 8
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 9
_currentlabel = "medium";
Symbol 126 MovieClip Frame 10
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 11
_currentlabel = "blink";
Symbol 126 MovieClip Frame 14
_currentlabel = "endblink";
Symbol 126 MovieClip Frame 15
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 16
_currentlabel = "wide";
Symbol 126 MovieClip Frame 17
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 18
_currentlabel = "sad";
Symbol 126 MovieClip Frame 19
gotoAndPlay(_currentlabel);
Symbol 126 MovieClip Frame 20
_currentlabel = "mad";
Symbol 126 MovieClip Frame 21
gotoAndPlay(_currentlabel);
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 25
stop();
Symbol 142 MovieClip Frame 1
stop();