Frame 1
function grow() {
if (size < sandslash.front._totalframes) {
size++;
sandslash.breast1.gotoAndStop(size);
sandslash.breast2.gotoAndStop(size);
sandslash.front.gotoAndStop(size);
} else {
growth = 0;
}
}
function revert() {
if (size > 1) {
size--;
sandslash.breast1.gotoAndStop(size);
sandslash.breast2.gotoAndStop(size);
sandslash.front.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];
}
sandslash.mouth.gotoAndPlay(curState.mouth);
sandslash.eye.gotoAndPlay(curState.eye);
if (sandslash.frontarm._currentlabel.indexOf(curState.frontarm) == -1) {
sandslash.frontarm.gotoAndPlay("move" + curState.frontarm);
}
canBlink = curState.canBlink;
frequency = curState.frequency;
offset = curState.offset;
count = curState.count;
}
}
_level0.bgColor = 16769676 /* 0xFFE28C */;
_level0.flashWidth = 800;
_level0.flashHeight = 600;
var state = "";
var condition = "";
var states = new Array();
var size = 1;
var growth = 0;
var breasts = true;
var belly = true;
var curState = new Object();
var canBlink = false;
var blinking = false;
var b1X = sandslash.breast1._x;
var b1Y = sandslash.breast1._y;
var b2X = sandslash.breast2._x;
var b2Y = sandslash.breast2._y;
var frequency = 0;
var count = 0;
var offset = 0;
var timer = 0;
sandslash.front.stop();
sandslash.breast1.stop();
sandslash.breast2.stop();
states.sleeping = {mouth:"closed", eye:"closed", frontarm:"down", frequency:0.0966643893412244, offset:3, count:(Math.PI/4), canBlink:false};
states.awaken = {mouth:"open", eye:"open", frontarm:"down", frequency:0.418879020478639, offset:3, count:(Math.PI/4), canBlink:true};
states.realize = {mouth:"open", eye:"small", frontarm:"down", frequency:0.20943951023932, offset:3, count:(Math.PI/4), canBlink:true};
states.relaxed = {mouth:"smile", eye:"small", frontarm:"up", frequency:0.20943951023932, offset:3, count:(Math.PI/4), canBlink:true};
states.happy = {mouth:"happy", eye:"wide", frontarm:"up", frequency:0.418879020478639, offset:3, count:(Math.PI/4), canBlink:true};
states.revert = {mouth:"happy", eye:"closed", frontarm:"up", frequency:0.20943951023932, offset:3, count:(Math.PI/4), canBlink:false};
states.almost = {mouth:"happy", eye:"small", frontarm:"down", frequency:0.20943951023932, offset:3, count:(Math.PI/4), canBlink:true};
setState("sleeping");
sandslash.onEnterFrame = function () {
if (blinking && (sandslash.eye._currentlabel == "endblink")) {
blinking = false;
sandslash.eye.gotoAndPlay(curState.eye);
}
if (canBlink && (Math.random() > 0.99)) {
blinking = true;
sandslash.eye.gotoAndPlay("blink");
}
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 :
setState("relaxed");
growth = 0;
break;
case size < 400 :
setState("happy");
break;
case size == 400 :
setState("relaxed");
}
} else if (growth == -1) {
revert();
switch (true) {
case size == 1 :
setState("sleeping");
break;
case size < 200 :
setState("almost");
break;
default :
setState("revert");
}
}
if ((!growth) && ((size == 200) || (size == 400))) {
stState("relaxed");
}
var _local1 = (Math.min(Math.cos(count), 0.7) * offset) * 0.5;
sandslash.breast1._y = b1Y + (_local1 * 0.5);
sandslash.breast2._y = b2Y + (_local1 * 0.5);
sandslash.breast1._rotation = _local1 / size;
sandslash.breast2._rotation = _local1 / size;
count = count + frequency;
};
var reset = false;
_panel._plus._txt.text = "+";
_panel._minus._txt.text = "-";
_panel._expand._txt.text = "Expand";
_panel._revert._txt.text = "Revert";
_panel._info.text = "Anthro Sandslash expansion. Drawn and programmed by Doom the wolf (http://doom-the-wolf.deviantart.com)...\n...does anyone still read this? The buttons already speak for themselves, just go try them. Nothing bad will happen.";
_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 () {
sandslash._xscale = (sandslash._yscale = sandslash._xscale + 2);
};
};
_panel._minus.onPress = function () {
_panel._minus.onEnterFrame = function () {
if (sandslash._xscale > 2) {
sandslash._xscale = (sandslash._yscale = sandslash._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 >= sandslash.front._totalframes) {
growth = 0;
reset = true;
} else {
growth = 1;
}
};
_panel._expand.onRelease = function () {
if (reset) {
growth = 0;
size = 1;
sandslash.front.gotoAndStop(1);
sandslash.breast1.gotoAndStop(1);
sandslash.breast2.gotoAndStop(1);
condition = "";
delete _root.onEnterFrame;
setState("sleeping");
reset = false;
}
};
_panel._expand.onReleaseOutside = function () {
reset = false;
};
_panel._revert.onPress = function () {
growth = -1;
};
sandslash.onMouseDown = function () {
if (_panel._y > 550) {
sandslash.startDrag();
}
};
sandslash.onMouseUp = function () {
sandslash.stopDrag();
};
sandslash.front.onPress = function () {
if (condition == "") {
condition = "bellypoke";
timer = 30;
state = "special";
sandslash.mouth.gotoAndPlay("happy");
sandslash.eye.gotoAndPlay("shut");
_root.onEnterFrame = timeout_fn;
}
};
sandslash.breast1.onPress = function () {
if (condition == "") {
condition = "breastpoke";
timer = 30;
state = "special";
sandslash.mouth.gotoAndPlay("open");
sandslash.eye.gotoAndPlay("wide");
frequency = 0.6;
_root.onEnterFrame = timeout_fn;
}
};
sandslash.breast2.onPress = sandslash.breast1.onPress;
Symbol 25 MovieClip Frame 1
_currentlabel = "smile";
Symbol 25 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 25 MovieClip Frame 3
_currentlabel = "closed";
Symbol 25 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 25 MovieClip Frame 5
_currentlabel = "open";
Symbol 25 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 25 MovieClip Frame 7
_currentlabel = "happy";
Symbol 25 MovieClip Frame 8
gotoAndPlay(_currentlabel);
Symbol 31 MovieClip Frame 1
_currentlabel = "open";
Symbol 31 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 31 MovieClip Frame 3
_currentlabel = "closed";
Symbol 31 MovieClip Frame 4
gotoAndPlay(_currentlabel);
Symbol 31 MovieClip Frame 5
_currentlabel = "small";
Symbol 31 MovieClip Frame 6
gotoAndPlay(_currentlabel);
Symbol 31 MovieClip Frame 7
_currentlabel = "blink";
Symbol 31 MovieClip Frame 11
_currentlabel = "endblink";
Symbol 31 MovieClip Frame 12
gotoAndPlay(_currentlabel);
Symbol 31 MovieClip Frame 13
_currentlabel = "wide";
Symbol 31 MovieClip Frame 14
gotoAndPlay(_currentlabel);
Symbol 31 MovieClip Frame 15
_currentlabel = "shut";
Symbol 31 MovieClip Frame 16
gotoAndPlay(_currentlabel);
Symbol 49 MovieClip Frame 1
_currentlabel = "down";
Symbol 49 MovieClip Frame 2
gotoAndPlay(_currentlabel);
Symbol 49 MovieClip Frame 5
_currentlabel = "moveup";
Symbol 49 MovieClip Frame 10
_currentlabel = "up";
Symbol 49 MovieClip Frame 11
gotoAndPlay(_currentlabel);
Symbol 49 MovieClip Frame 12
_currentlabel = "movedown";
Symbol 49 MovieClip Frame 17
gotoAndPlay ("down");
Symbol 66 MovieClip Frame 1
stop();