Frame 1
function setSize(s) {
s = Math.floor(s);
tiax.breast1.gotoAndStop(s);
tiax.breast2.gotoAndStop(s);
if (tiax.top._currentframe <= 200) {
tiax.top.gotoAndStop(Math.min(s, 201));
}
}
function grow() {
if (size < tiax.breast1._totalframes) {
size = size + growthSpeed;
if (size > tiax.breast1._totalframes) {
size = tiax.breast1._totalframes;
}
setSize(size);
} else {
growth = 0;
}
}
function revert() {
if (size > 1) {
size = size - growthSpeed;
if (size < 1) {
size = 1;
}
setSize(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];
}
tiax.eye.gotoAndPlay(curState.eye);
tiax.mouth.gotoAndPlay(curState.mouth);
if (tiax.arm1._currentlabel != curState.arm1) {
tiax.arm1.gotoAndPlay("move" + curState.arm1);
tiax.sleeve.gotoAndPlay("move" + curState.arm1);
}
tiax.eye.pupil._x = pX + curState.pX;
tiax.eye.pupil._y = pY + curState.pY;
canBlink = curState.canBlink;
}
}
_level0.bgColor = 0;
_level0.flashWidth = 800;
_level0.flashHeight = 600;
var state = "";
var condition = "";
var states = new Array();
var size = 1;
var growthSpeed = 1;
var growth = 0;
var curState = new Object();
var canBlink = false;
var blinking = false;
var pX = tiax.eye.pupil._x;
var pY = tiax.eye.pupil._y;
tiax.breast1.stop();
tiax.breast2.stop();
tiax.top.stop();
states.sleeping = {mouth:"closed", eye:"closed", arm1:"up", pX:0, pY:0, canBlink:false};
states.awaken = {mouth:"faster", eye:"open", arm1:"down", pX:-4, pY:0, canBlink:true};
states.realize = {mouth:"small", eye:"sad", arm1:"breast", pX:-4, pY:0, canBlink:true};
states.afraid = {mouth:"sad", eye:"open", arm1:"breast", pX:-4, pY:0, canBlink:true};
states.bigger = {mouth:"wide", eye:"wide", arm1:"breast", pX:-6, pY:-2, canBlink:true};
states.tired = {mouth:"open", eye:"sad", arm1:"breast", pX:-6, pY:-2, canBlink:true};
states.over = {mouth:"smile", eye:"medium", arm1:"down", pX:-6, pY:0, canBlink:true};
states.revert = {mouth:"small", eye:"small", arm1:"breast", pX:-4, pY:0, canBlink:true};
states.almost = {mouth:"closed", eye:"open", arm1:"down", pX:-4, pY:0, canBlink:true};
states.pressure = {mouth:"teeth", eye:"wide", arm1:"down", pX:-6, pY:0, canBlink:true};
states.tight = {mouth:"teeth2", eye:"shut", arm1:"down", pX:-6, pY:0, canBlink:false};
states.breastpoke = {mouth:"teeth", eye:"shut", arm1:"breast", pX:-6, pY:0, canBlink:false};
states.breastpoke2 = {mouth:"small", eye:"sad", arm1:"breast", pX:-6, pY:0, canBlink:false};
states.breastrub = {mouth:"smile", eye:"mad", arm1:"breast", pX:-6, pY:0, canBlink:false};
setState("sleeping");
tiax.onEnterFrame = function () {
if (canBlink && (Math.random() > 0.99)) {
tiax.eye.gotoAndPlay("blink");
tiax.eye.pupil._x = pX + curState.pX;
tiax.eye.pupil._y = pY + curState.pY;
blinking = true;
}
if (blinking && (tiax.eye._currentlabel == "endblink")) {
tiax.eye.gotoAndPlay(curState.eye);
tiax.eye.pupil._x = pX + curState.pX;
tiax.eye.pupil._y = pY + curState.pY;
blinking = false;
}
var _local1 = -2;
if ((tiax.top._currentframe > 200) && (tiax.top._currentframe < tiax.top._totalframes)) {
_local1 = growth;
growth = 0;
setSize(201);
tiax.top.play();
if (tiax.top._currentframe < (tiax.top._totalframes - 15)) {
setState("pressure");
} else {
setState("tight");
if (tiax.top._currentframe == (tiax.top._totalframes - 1)) {
if (tiax.drop._currentframe == 1) {
tiax.drop.gotoAndPlay(2);
tiax.drops.gotoAndPlay(2);
setState("bigger");
}
}
}
} else if (tiax.top._currentframe == tiax.top._totalframes) {
tiax.top.stop();
}
if (growth == 1) {
grow();
switch (true) {
case size < 20 :
break;
case size < 100 :
setState("awaken");
break;
case size < 200 :
setState("realize");
break;
case (size > 200) && ((size - growthSpeed) < 200) :
size = 200;
setSize(size);
if (tiax.top._currentframe < tiax.top._totalframes) {
tiax.top.gotoAndStop(200);
}
case size == 200 :
growth = 0;
setState("afraid");
break;
case size < 300 :
setState("bigger");
break;
case size < 400 :
setState("tired");
break;
case size >= 400 :
size = 400;
setSize(size);
setState("over");
growth = 0;
}
if ((tiax.top._currentframe > 200) && (tiax.top._currentframe < tiax.top._totalframes)) {
setSize(201);
}
} else if (growth == -1) {
revert();
tiax.drop.gotoAndStop(1);
switch (true) {
case size == 1 :
setState("sleeping");
break;
case size < 200 :
setState("almost");
break;
case size < 400 :
setState("revert");
}
}
if (_local1 != -2) {
growth = _local1;
}
};
var reset = false;
_panel._plus._txt.text = "+";
_panel._minus._txt.text = "-";
_panel._expand._txt.text = "Expand";
_panel._revert._txt.text = "Revert";
_panel._info.text = "Tiax - Breast expansion. Drawn and programmed by Doom the wolf (http://doom-the-wolf.deviantart.com).";
_panel._cont_txt.text = "continuous";
_panel._speed_txt.text = "1";
_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 () {
tiax._xscale = (tiax._yscale = tiax._xscale + 2);
};
};
_panel._minus.onPress = function () {
_panel._minus.onEnterFrame = function () {
if (tiax._xscale > 15) {
tiax._xscale = (tiax._yscale = tiax._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 >= tiax.breast1._totalframes) {
growth = 0;
reset = true;
} else {
growth = 1;
}
};
_panel._expand.onRelease = function () {
if (reset) {
growth = 0;
size = 1;
tiax.top.gotoAndStop(1);
setSize(1);
condition = "";
delete _root.onEnterFrame;
setState("sleeping");
reset = false;
}
};
_panel._expand.onReleaseOutside = function () {
reset = false;
};
_panel._revert.onPress = function () {
growth = -1;
};
var kDown = new Object();
Key.addListener(kDown);
_panel._speed_txt.maxChars = 2;
_panel._speed_txt.restrict = "0123456789.";
_panel._speed_txt.background = true;
_panel._speed_txt.backgroundColor = 16777215 /* 0xFFFFFF */;
_panel._speed_txt.border = true;
kDown.onKeyDown = function (K) {
if ((Key.getCode() == 13) || (K != undefined)) {
if ((_panel._speed_txt.text.length == 0) || (_panel._speed_txt.text == "..")) {
_panel._speed_txt.text = "1";
} else if (_panel._speed_txt.text == "0") {
_panel._speed_txt.text = "1";
} else if (Number(_panel._speed_txt.text) > 50) {
_panel._speed_txt.text = "50";
}
growthSpeed = Number(_panel._speed_txt.text);
_panel._speed_txt.backgroundColor = 16777215 /* 0xFFFFFF */;
if (_panel._tip.getDepth() > _panel._ok.getDepth()) {
_panel._tip.swapDepths(_panel._ok);
}
}
};
_panel._speed_txt.onChanged = function () {
_panel._speed_txt.backgroundColor = 16746632 /* 0xFF8888 */;
if (_panel._tip.getDepth() < _panel._ok.getDepth()) {
_panel._tip.swapDepths(_panel._ok);
}
};
_panel._speed_txt.onSetFocus = function () {
if (_panel._tip.getDepth() < _panel._ok.getDepth()) {
_panel._tip.swapDepths(_panel._ok);
}
_panel._speed_txt.backgroundColor = 16746632 /* 0xFF8888 */;
};
_panel._speed_txt.onKillFocus = function () {
kDown.onKeyDown(true);
};
var tF = new TextFormat();
tF.size = 12;
_panel._ok._txt.setNewTextFormat(tF);
_panel._ok._txt.text = "ok";
_panel._ok.onPress = function () {
kDown.onKeyDown(true);
};
tiax.onMouseDown = function () {
if (_panel._y > 550) {
tiax.startDrag();
}
};
tiax.onMouseUp = function () {
tiax.stopDrag();
};
tiax.breast1.onPress = function () {
if (condition == "") {
var _local2 = curState.state;
state = "special";
timer = 20;
if (size < 20) {
tiax.mouth.gotoAndPlay("open");
tiax.eye.gotoAndPlay("wide");
} else if (size < 200) {
tiax.mouth.gotoAndPlay("wide");
tiax.eye.gotoAndPlay("sad");
} else if (size > 300) {
setState("breastpoke2");
} else if (size > 201) {
setState("breastpoke");
timer = 10;
}
condition = "bellypoke";
curState.state = _local2;
_root.onEnterFrame = timeout_fn;
}
};
tiax.breast2.onPress = tiax.breast1.onPress;
var rub = 0;
tiax.breast1.onRollOver = function () {
if ((condition == "") && (!(rub % 3))) {
var _local2 = curState.state;
state = "special";
timer = 20;
if (size < 20) {
tiax.mouth.gotoAndPlay("open");
tiax.eye.gotoAndPlay("small");
tiax.eye.pupil._x = pX - 6;
tiax.eye.pupil._y = pY;
} else if (size > 201) {
setState("breastrub");
} else if (size < 200) {
tiax.mouth.gotoAndPlay("open");
tiax.eye.gotoAndPlay("closed");
}
condition = "bellyrub";
curState.state = _local2;
_root.onEnterFrame = timeout_fn;
}
rub++;
};
tiax.breast2.onRollOver = tiax.breast1.onRollOver;
Symbol 40 MovieClip Frame 1
_currentlabel = "open";
Symbol 40 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 3
_currentlabel = "closed";
Symbol 40 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 5
_currentlabel = "small";
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 40 MovieClip Frame 13
_currentlabel = "shut";
Symbol 40 MovieClip Frame 14
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 15
_currentlabel = "sad";
Symbol 40 MovieClip Frame 16
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 17
_currentlabel = "medium";
Symbol 40 MovieClip Frame 18
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 19
_currentlabel = "mad";
Symbol 40 MovieClip Frame 20
gotoAndPlay(_currentlabel);
Symbol 40 MovieClip Frame 26
_currentlabel = "wide";
Symbol 40 MovieClip Frame 27
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 1
_currentlabel = "closed";
Symbol 62 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 3
_currentlabel = "faster";
Symbol 62 MovieClip Frame 28
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 30
_currentlabel = "teeth";
Symbol 62 MovieClip Frame 31
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 32
_currentlabel = "teeth2";
Symbol 62 MovieClip Frame 33
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 35
_currentlabel = "small";
Symbol 62 MovieClip Frame 50
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 51
_currentlabel = "sad";
Symbol 62 MovieClip Frame 52
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 53
_currentlabel = "open";
Symbol 62 MovieClip Frame 54
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 55
_currentlabel = "smile";
Symbol 62 MovieClip Frame 56
gotoAndPlay(_currentlabel);
Symbol 62 MovieClip Frame 57
_currentlabel = "wide";
Symbol 62 MovieClip Frame 72
gotoAndPlay(_currentlabel);
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 25
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
_currentlabel = "down";
Symbol 117 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 117 MovieClip Frame 4
_currentlabel = "up";
Symbol 117 MovieClip Frame 9
_currentlabel = "up";
Symbol 117 MovieClip Frame 10
gotoAndPlay(_currentlabel);
Symbol 117 MovieClip Frame 11
_currentlabel = "down";
Symbol 117 MovieClip Frame 15
gotoAndPlay(_currentlabel);
Symbol 117 MovieClip Frame 20
_currentlabel = "breast";
Symbol 117 MovieClip Frame 25
_currentlabel = "breast";
Symbol 117 MovieClip Frame 26
gotoAndPlay(_currentlabel);
Symbol 124 MovieClip Frame 1
_currentlabel = "down";
Symbol 124 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 124 MovieClip Frame 4
_currentlabel = "up";
Symbol 124 MovieClip Frame 9
_currentlabel = "up";
Symbol 124 MovieClip Frame 10
gotoAndPlay(_currentlabel);
Symbol 124 MovieClip Frame 11
_currentlabel = "down";
Symbol 124 MovieClip Frame 15
gotoAndPlay(_currentlabel);
Symbol 124 MovieClip Frame 20
_currentlabel = "breast";
Symbol 124 MovieClip Frame 25
_currentlabel = "breast";
Symbol 124 MovieClip Frame 26
gotoAndPlay(_currentlabel);
Symbol 136 MovieClip Frame 1
stop();