Frame 1
function grow() {
if (size < dripdry.belly._totalframes) {
size++;
dripdry.belly.gotoAndStop(size + Math.round(Math.sin(size * 0.3) * 2));
dripdry.breast1.gotoAndStop(size);
dripdry.breast2.gotoAndStop(size);
} 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];
}
dripdry.mouth.gotoAndPlay(curState.mouth);
dripdry.eye.gotoAndPlay(curState.eye);
if (dripdry.leg1._currentlabel != curState.leg1) {
dripdry.leg1.gotoAndPlay(curState.leg1);
}
if (dripdry.leg2._currentlabel != curState.leg2) {
dripdry.leg2.gotoAndPlay(curState.leg2);
}
canBlink = curState.canBlink;
frequency = curState.frequency;
offset = curState.offset;
pos = curState.pos;
}
}
_level0.bgColor = 16777215 /* 0xFFFFFF */;
_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 b1X = dripdry.breast1._x;
var b1Y = dripdry.breast1._y;
var b2X = dripdry.breast2._x;
var b2Y = dripdry.breast2._y;
var count = 0;
var frequency = 0;
var offset = 0;
var pos = 0;
var rotation = 0;
dripdry.belly.stop();
dripdry.breast1.stop();
dripdry.breast2.stop();
dripdry.body.stop();
states.begin = {eye:"open", mouth:"normal", leg1:"normal", leg2:"normal", canBlink:true, frequency:0.2, offset:5, pos:0.5};
states.sad = {eye:"sad", mouth:"normal", leg1:"normal", leg2:"normal", canBlink:true, frequency:0.2, offset:5, pos:0.5};
states.inflate = {eye:"wide", mouth:"inflate", leg1:"tense", leg2:"tense", canBlink:true, frequency:0.5, offset:3, pos:0.3};
states.worried = {eye:"sad", mouth:"inflate", leg1:"tense", leg2:"tens", canBlink:true, frequency:0.5, offset:3, pos:0.3};
states.bigger = {eye:"shut", mouth:"inflate", leg1:"move", leg2:"move", canBlink:false, frequency:0.5, offset:3, pos:0.3};
states.afraid = {eye:"closed", mouth:"inflate", leg1:"normal", leg2:"normal", canBlink:false, frequency:0.3, offset:5, pos:1};
states.over = {eye:"closed", mouth:"normal", leg1:"normal", leg2:"normal", canBlink:false, frequency:0.3, offset:5, pos:0.5};
setState("begin");
dripdry.onEnterFrame = function () {
var _local1 = Math.cos(count) + 1;
dripdry.breast1._x = b1X + (_local1 * pos);
dripdry.breast2._x = b2X + (_local1 * pos);
dripdry.breast1._y = b1Y - (_local1 * pos);
dripdry.breast2._y = b2Y - (_local1 * pos);
dripdry.body.gotoAndStop(Math.round((_local1 * offset) * 0.5));
count = count + frequency;
if (canBlink && (Math.random() > 0.99)) {
dripdry.eye.gotoAndPlay("blink");
blinking = true;
}
if (blinking && (dripdry.eye._currentlabel == "endblink")) {
dripdry.eye.gotoAndPlay(curState.eye);
blinking = false;
}
if (growth) {
grow();
switch (true) {
case size < 100 :
setState("inflate");
break;
case size < 200 :
setState("worried");
break;
case size == 200 :
growth = 0;
break;
case size < 300 :
setState("bigger");
break;
case size < 400 :
setState("afraid");
break;
case size == 400 :
setState("over");
growth = 0;
}
} else {
switch (true) {
case size == 1 :
setState("begin");
break;
case size <= 200 :
setState("sad");
break;
case size <= 400 :
setState("over");
}
}
};
var reset = false;
_panel._plus._txt.text = "+";
_panel._minus._txt.text = "-";
_panel._expand._txt.text = "Inflate";
_panel._info.text = "Interactive Drip Dry inflation. Drawn and programmed by Doom the wolf (http://doom-the-wolf.deviantart.com). Click 'Inflate' to fill her up (Deflation was removed for logical reasons). Selecting 'continuous' will inflate her 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 = "Expand";
} else if (size < 400) {
_panel._expand._txt.text = "Bigger";
} 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 () {
dripdry._xscale = (dripdry._yscale = dripdry._xscale + 2);
};
};
_panel._minus.onPress = function () {
_panel._minus.onEnterFrame = function () {
if (dripdry._xscale > 2) {
dripdry._xscale = (dripdry._yscale = dripdry._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 >= dripdry.belly._totalframes) {
growth = 0;
reset = true;
} else {
growth = 1;
}
};
_panel._expand.onRelease = function () {
if (reset) {
growth = 0;
size = 1;
dripdry.belly.gotoAndStop(1);
dripdry.breast1.gotoAndStop(1);
dripdry.breast2.gotoAndStop(1);
condition = "";
timer = 0;
delete _root.onEnterFrame;
setState("sad");
reset = false;
}
};
_panel._expand.onReleaseOutside = function () {
reset = false;
};
dripdry.onMouseDown = function () {
if (_panel._y > 550) {
dripdry.startDrag();
}
};
dripdry.onMouseUp = function () {
dripdry.stopDrag();
};
dripdry.belly.onPress = function () {
if ((condition == "") && (size > 50)) {
state = "special";
condition = "bellypoke";
dripdry.leg1.gotoAndPlay("move");
dripdry.leg2.gotoAndPlay("move");
dripdry.eye.gotoAndPlay("shut");
timer = 20;
_root.onEnterFrame = timeout_fn;
}
};
dripdry.breast1.onPress = function () {
if (condition == "") {
state = "special";
condition = "breastpoke";
dripdry.leg1.gotoAndPlay("tense");
dripdry.leg2.gotoAndPlay("tense");
dripdry.eye.gotoAndPlay("small");
timer = 20;
_root.onEnterFrame = timeout_fn;
}
};
Symbol 21 MovieClip Frame 1
_currentlabel = "open";
Symbol 21 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 21 MovieClip Frame 3
_currentlabel = "small";
Symbol 21 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 21 MovieClip Frame 5
_currentlabel = "closed";
Symbol 21 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 21 MovieClip Frame 7
_currentlabel = "sad";
Symbol 21 MovieClip Frame 8
gotoAndPlay(_currentlabel);
Symbol 21 MovieClip Frame 9
_currentlabel = "blink";
Symbol 21 MovieClip Frame 13
_currentlabel = "endblink";
Symbol 21 MovieClip Frame 14
gotoAndPlay(_currentlabel);
Symbol 21 MovieClip Frame 15
_currentlabel = "wide";
Symbol 21 MovieClip Frame 16
gotoAndPlay(_currentlabel);
Symbol 21 MovieClip Frame 17
_currentlabel = "shut";
Symbol 21 MovieClip Frame 18
gotoAndPlay(_currentlabel);
Symbol 35 MovieClip Frame 1
_currentlabel = "normal";
Symbol 35 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 35 MovieClip Frame 5
_currentlabel = "inflate";
Symbol 35 MovieClip Frame 21
gotoAndPlay(_currentlabel);
Symbol 53 MovieClip Frame 400
stop();
Symbol 80 MovieClip Frame 1
_currentlabel = "normal";
Symbol 80 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 80 MovieClip Frame 3
_currentlabel = "tense";
Symbol 80 MovieClip Frame 6
stop();
Symbol 80 MovieClip Frame 10
_currentlabel = "move";
Symbol 80 MovieClip Frame 61
gotoAndPlay(_currentlabel);
Symbol 87 MovieClip Frame 400
stop();
Symbol 111 MovieClip Frame 1
_currentlabel = "normal";
Symbol 111 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 111 MovieClip Frame 3
_currentlabel = "tense";
Symbol 111 MovieClip Frame 6
stop();
Symbol 111 MovieClip Frame 10
_currentlabel = "move";
Symbol 111 MovieClip Frame 61
gotoAndPlay(_currentlabel);
Symbol 120 MovieClip Frame 1
stop();