Frame 1
function grow() {
if (size < lynelle.belly._totalframes) {
size++;
lynelle.belly.gotoAndStop(size);
if ((size < 50) && (lynelle.dress._currentframe < 50)) {
lynelle.dress.gotoAndStop(size);
} else if (lynelle.dress._currentframe < lynelle.dress._totalframes) {
lynelle.dress.play();
} else {
lynelle.dress.stop();
}
if ((size < 30) && (lynelle.belt._currentframe < 30)) {
lynelle.belt.gotoAndStop(size);
} else if (lynelle.belt._currentframe < lynelle.belt._totalframes) {
lynelle.belt.play();
} else {
lynelle.belt.stop();
}
lynelle.jacket1.gotoAndStop(size);
lynelle.breast1.gotoAndStop(size);
lynelle.breast2.gotoAndStop(size);
lynelle.breast2copy.gotoAndStop(size);
} else {
growth = 0;
}
}
function revert() {
if (size > 1) {
size--;
lynelle.belly.gotoAndStop(size);
if ((size < 50) && (lynelle.dress._currentframe < 50)) {
lynelle.dress.gotoAndStop(size);
} else if (lynelle.dress._currentframe < lynelle.dress._totalframes) {
lynelle.dress.play();
} else {
lynelle.dress.stop();
}
if ((size < 30) && (lynelle.belt._currentframe < 30)) {
lynelle.belt.gotoAndStop(size);
} else if (lynelle.belt._currentframe < lynelle.belt._totalframes) {
lynelle.belt.play();
} else {
lynelle.belt.stop();
}
lynelle.jacket1.gotoAndStop(size);
lynelle.breast1.gotoAndStop(size);
lynelle.breast2.gotoAndStop(size);
lynelle.breast2copy.gotoAndStop(size);
if (size < 61) {
if (depthChange.dress) {
depthChange.dress = false;
lynelle.shoulder1.swapDepths(origDepths.shoulder1);
lynelle.arm1.swapDepths(origDepths.arm1);
lynelle.jacket1.swapDepths(origDepths.jacket1);
}
}
} else {
growth = 0;
}
}
function timeout_fn() {
if (!timer) {
condition = "";
setState(curState.state);
if (growth > 0) {
lynelle.mouth.gotoAndPlay("inflate");
}
delete _root.onEnterFrame;
}
timer--;
}
function setState(str) {
if (condition != "") {
return(undefined);
}
if (state != str) {
curState.state = str;
state = str;
curState.state = state;
for (var _local3 in states[str]) {
curState[_local3] = states[str][_local3];
}
lynelle.eyes.gotoAndPlay(curState.eyes);
lynelle.mouth.gotoAndPlay(curState.mouth);
lynelle.eyes.pupil1._x = p1X + curState.p1X;
lynelle.eyes.pupil1._y = p1Y + curState.p1Y;
lynelle.eyes.pupil2._x = p2X + curState.p2X;
lynelle.eyes.pupil2._y = p2Y + curState.p2Y;
if (Boolean(lynelle.arm1._rotation) != Boolean(curState.arm1)) {
lynelle.arm1.onEnterFrame = function () {
if (curState.arm1 && (this._rotation <= -30)) {
this._parent.shoulder1._rotation = -30;
this._rotation = -30;
delete this.onEnterFrame;
} else if ((!curState.arm1) && (this._rotation >= 0)) {
this._parent.shoulder1._rotation = 0;
this._rotation = 0;
delete this.onEnterFrame;
} else if (curState.arm1) {
this._parent.shoulder1._rotation = this._parent.shoulder1._rotation - 5;
this._rotation = this._rotation - 5;
} else {
this._parent.shoulder1._rotation = this._parent.shoulder1._rotation + 5;
this._rotation = this._rotation + 5;
}
};
}
canBlink = curState.canBlink;
}
}
_level0.bgColor = 39168;
_level0.flashWidth = 800;
_level0.flashHeight = 600;
var state = "";
var condition = "";
var states = new Array();
var size = 1;
var growth = 0;
var curState = new Object();
var canBlink = false;
var blinking = false;
var p1X = lynelle.eyes.pupil1._x;
var p1Y = lynelle.eyes.pupil1._y;
var p2X = lynelle.eyes.pupil2._x;
var p2Y = lynelle.eyes.pupil2._y;
var origDepths = new Object();
var depthChange = {dress:false, belt:false};
var depth;
for (depth in lynelle) {
if (lynelle[depth].getDepth()) {
origDepths[depth] = lynelle[depth].getDepth();
}
}
lynelle.attachMovie("pressit", "pressit_mc", 10, {_x:-8, _y:-170});
lynelle.pressit_mc.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
lynelle.belly.stop();
lynelle.dress.stop();
lynelle.belt.stop();
lynelle.breast1.stop();
lynelle.breast2.stop();
lynelle.jacket1.stop();
lynelle.breast2copy.stop();
states.resting = {eyes:"small", mouth:"closed", arm1:0, canBlink:true, p1X:0, p1Y:0, p2X:0, p2Y:0};
states.inflate = {eyes:"open", mouth:"happy", arm1:0, canBlink:true, p1X:-10, p1Y:10, p2X:-9, p2Y:7};
states.relaxed = {eyes:"closed", mouth:"open", arm1:0, canBlink:false, p1X:0, p1Y:0, p2X:0, p2Y:0};
states.bigger = {eyes:"small", mouth:"closed", arm1:1, canBlink:true, p1X:0, p1Y:0, p2X:0, p2Y:0};
states.over = {eyes:"open", mouth:"smile", arm1:1, canBlink:true, p1X:-7, p1Y:7, p2X:-5, p2Y:5};
states.revert = {eyes:"closed", mouth:"happy", arm1:0, canBlink:false, p1X:0, p1Y:0, p2X:0, p2Y:0};
setState("resting");
lynelle.onEnterFrame = function () {
lynelle.leg1._rotation = Math.max(-15, -15 * (size / 150));
lynelle.leg2._rotation = Math.min(10, 10 * (size / 150));
if (canBlink && (Math.random() > 0.99)) {
lynelle.eyes.gotoAndPlay("blink");
lynelle.eyes.pupil1._x = p1X + curState.p1X;
lynelle.eyes.pupil1._y = p1Y + curState.p1Y;
lynelle.eyes.pupil2._x = p2X + curState.p2X;
lynelle.eyes.pupil2._y = p2Y + curState.p2Y;
blinking = true;
}
if (blinking && (lynelle.eyes._currentlabel == "endblink")) {
lynelle.eyes.gotoAndPlay(curState.eyes);
lynelle.eyes.pupil1._x = p1X + curState.p1X;
lynelle.eyes.pupil1._y = p1Y + curState.p1Y;
lynelle.eyes.pupil2._x = p2X + curState.p2X;
lynelle.eyes.pupil2._y = p2Y + curState.p2Y;
blinking = false;
}
if (!growth) {
if ((lynelle.mouth._currentlabel != curState.mouth) && (!condition)) {
lynelle.mouth.gotoAndPlay(curState.mouth);
}
} else if (growth == 1) {
grow();
lynelle.mouth.gotoAndPlay("inflate");
switch (true) {
case size < 300 :
setState("inflate");
break;
case size == 300 :
setState("relaxed");
growth = 0;
break;
case size < 600 :
setState("bigger");
break;
case size == 600 :
growth = 0;
setState("over");
}
} else if (growth == -1) {
revert();
switch (true) {
case size == 1 :
setState("resting");
break;
default :
setState("revert");
}
}
if (lynelle.belt._currentframe == 35) {
if (!depthChange.belt) {
depthChange.belt = true;
lynelle.belt.swapDepths(lynelle.breast2.getDepth() - 7);
}
}
if (lynelle.dress._currentframe == 61) {
lynelle.dress.swapDepths(lynelle.breast2.getDepth() - 2);
}
if (size > 60) {
if (!depthChange.dress) {
depthChange.dress = true;
lynelle.shoulder1.swapDepths(lynelle.breast2.getDepth() - 3);
lynelle.arm1.swapDepths(lynelle.breast2.getDepth() - 4);
lynelle.jacket1.swapDepths(lynelle.breast2.getDepth() - 5);
}
}
};
var reset = false;
_panel._plus._txt.text = "+";
_panel._minus._txt.text = "-";
_panel._expand._txt.text = "Inflate";
_panel._revert._txt.text = "Deflate";
_panel._info.text = "Interactive Lynelle inflation. Drawn and programmed by Doom the wolf (http://doom-the-wolf.deviantart.com). Click 'Inflate' or 'Deflate' to change her size. 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 (size < 200) {
_panel._expand._txt.text = "Inflate";
} else if (size < 400) {
_panel._expand._txt.text = "Bigger";
} else if (size < 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 () {
lynelle._xscale = (lynelle._yscale = lynelle._xscale + 2);
};
};
_panel._minus.onPress = function () {
_panel._minus.onEnterFrame = function () {
if (lynelle._xscale > 2) {
lynelle._xscale = (lynelle._yscale = lynelle._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 (size >= lynelle.belly._totalframes) {
growth = 0;
reset = true;
} else {
growth = 1;
}
};
_panel._expand.onRelease = function () {
if (reset) {
growth = 0;
size = 1;
lynelle.belly.gotoAndStop(1);
lynelle.breast1.gotoAndStop(1);
lynelle.breast2.gotoAndStop(1);
lynelle.breast2copy.gotoAndStop(1);
lynelle.dress.gotoAndStop(1);
lynelle.belt.gotoAndStop(1);
lynelle.jacket1.gotoAndStop(1);
depthChange = {dress:false, belt:false};
condition = "";
timer = 0;
delete _root.onEnterFrame;
setState("resting");
reset = false;
var _local2;
for (_local2 in lynelle) {
if (lynelle[_local2].getDepth()) {
lynelle[_local2].swapDepths(origDepths[_local2]);
}
}
}
};
_panel._expand.onReleaseOutside = function () {
reset = false;
};
_panel._revert.onPress = function () {
growth = -1;
};
lynelle.onMouseDown = function () {
if (_panel._y > 550) {
lynelle.startDrag();
}
};
lynelle.onMouseUp = function () {
lynelle.stopDrag();
};
var rub = 0;
lynelle.belly.onPress = function () {
if ((condition == "") && (size > 100)) {
if (!growth) {
lynelle.mouth.gotoAndPlay("wide");
}
lynelle.eyes.gotoAndPlay("open");
canBlink = false;
condition = "bellypoke";
state = "special";
lynelle.eyes.pupil1._x = p1X;
lynelle.eyes.pupil1._y = p1Y;
lynelle.eyes.pupil2._x = p2X;
lynelle.eyes.pupil2._y = p2Y;
timer = 30;
_root.onEnterFrame = timeout_fn;
}
rub++;
};
lynelle.breast1.onPress = function () {
if (condition == "") {
if (!growth) {
lynelle.mouth.gotoAndPlay("happy");
}
lynelle.eyes.gotoAndPlay("small");
canBlink = false;
condition = "breastpoke";
state = "special";
lynelle.eyes.pupil1._x = p1X;
lynelle.eyes.pupil1._y = p1Y;
lynelle.eyes.pupil2._x = p2X;
lynelle.eyes.pupil2._y = p2Y;
timer = 30;
_root.onEnterFrame = timeout_fn;
}
rub++;
};
lynelle.breast2copy.onPress = (lynelle.breast2.onPress = lynelle.breast1.onPress);
Symbol 40 MovieClip Frame 1
_currentlabel = "open";
Symbol 40 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 3
_currentlabel = "small";
Symbol 40 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 5
_currentlabel = "closed";
Symbol 40 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 7
_currentlabel = "blink";
Symbol 40 MovieClip Frame 11
_currentlabel = "endblink";
Symbol 40 MovieClip Frame 12
gotoAndPlay(_currentlabel);
Symbol 53 MovieClip Frame 1
_currentlabel = "smile";
Symbol 53 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 53 MovieClip Frame 3
_currentlabel = "inflate";
Symbol 53 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 53 MovieClip Frame 5
_currentlabel = "closed";
Symbol 53 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 53 MovieClip Frame 7
_currentlabel = "happy";
Symbol 53 MovieClip Frame 8
gotoAndPlay(_currentlabel);
Symbol 53 MovieClip Frame 9
_currentlabel = "open";
Symbol 53 MovieClip Frame 10
gotoAndPlay(_currentlabel);
Symbol 53 MovieClip Frame 11
_currentlabel = "wide";
Symbol 53 MovieClip Frame 12
gotoAndPlay(_currentlabel);
Symbol 68 MovieClip Frame 600
stop();
Symbol 91 MovieClip Frame 75
stop();
Symbol 104 MovieClip Frame 35
stop();
Symbol 117 MovieClip Frame 1
stop();