Combined Code
frame 1 {
function grow() {
if (size < husky.belly._totalframes) {
++size;
husky.belly.gotoAndStop(size);
husky.lbreast.gotoAndStop(size);
husky.rbreast.gotoAndStop(size);
} else {
growth = 0;
}
}
function revert() {
if (size > 1) {
--size;
husky.lbreast.gotoAndStop(size);
husky.rbreast.gotoAndStop(size);
husky.belly.gotoAndStop(size);
} else {
growth = 0;
}
}
function setState(str) {
if (state != str) {
curState.state = str;
state = str;
for (var v2 in states[str]) {
curState[v2] = states[str][v2];
}
husky.eye.gotoAndPlay(curState.eye);
husky.head.gotoAndPlay(curState.mouth);
canBlink = curState.canBlink;
}
}
var growth = 0;
var size = 1;
var cont = 0;
var states = new Object();
var curState = new Object();
var state = '';
states.sleeping = {'eye': 'closed', 'mouth': 'closed', 'canBlink': false};
states.idle = {'eye': 'open', 'mouth': 'smile', 'canBlink': true};
states.cute = {'eye': 'open', 'mouth': 'laugh', 'canBlink': false};
states.lulz = {'eye': 'small', 'mouth': 'smile', 'canBlink': false};
states.bellyExpand = {'eye': 'open', 'mouth': 'oh', 'canBlink': true};
states.revert = {'eye': 'small', 'mouth': 'smile', 'canBlink': false};
var canBlink = false;
var blinking = false;
var condition = '';
var timer = 0;
setState('idle');
cont = 0;
husky.belly.stop();
husky.lbreast.stop();
husky.rbreast.stop();
scan_btn.stop();
auto.stop();
husky.chest.belly.beam._visible = false;
husky.onEnterFrame = function () {
if (canBlink && Math.random() > 0.99) {
blinking = true;
husky.eye.gotoAndPlay('blink');
}
if (blinking && husky.eye._currentlabel == 'endblink') {
husky.eye.gotoAndPlay(curState.eye);
blinking = false;
}
if (growth == 1) {
grow();
husky.belly.beam._visible = true;
switch (true) {
case size < 5:
break;
case size > 50 && size < 100:
setState('cute');
break;
case size == 100:
setState('bellyExpand');
break;
case size == 150:
setState('lulz');
break;
case size == 164:
setState('lulz');
}
} else {
if (growth == -1) {
revert();
husky.belly.beam._visible = true;
switch (true) {
break;
case size < 5:
case size > 50 && size < 100:
setState('cute');
break;
case size == 100:
setState('bellyExpand');
break;
case size == 164:
setState('lulz');
}
} else {
if (growth == 0) {
husky.belly.beam._visible = false;
if (true !== size < 5) {
} else {
setState('idle');
}
}
}
}
};
btn_stop.onPress = function () {
growth = 0;
};
btn_reset.onPress = function () {
speech.gotoAndStop('none');
husky.belly.gotoAndStop(1);
husky.lbreast.gotoAndStop(1);
husky.rbreast.gotoAndStop(1);
size = 0;
growth = 0;
setState('idle');
};
expand_mc.onPress = function () {
growth = 1;
};
expand_mc.onRelease = function () {
if (cont == 0) {
growth = 0;
}
};
expand_mc.onReleaseOutside = function () {
if (cont == 0) {
growth = 0;
}
};
revert_mc.onPress = function () {
growth = -1;
};
revert_mc.onRelease = function () {
if (cont == 0) {
growth = 0;
}
};
revert_mc.onReleaseOutside = function () {
if (cont == 0) {
growth = 0;
}
};
auto.onPress = function () {
if (cont == 1) {
cont = 0;
auto.gotoAndStop(1);
} else {
if (cont == 0) {
cont = 1;
auto.gotoAndStop(2);
}
}
};
}
movieClip 3 {
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 8 {
}
movieClip 10 {
}
movieClip 12 {
}
movieClip 15 {
}
movieClip 27 {
frame 1 {
_currentlabel = 'open';
}
frame 2 {
gotoAndPlay(_currentlabel);
}
frame 3 {
_currentlabel = 'closed';
}
frame 4 {
gotoAndPlay(_currentlabel);
}
frame 5 {
_currentlabel = 'small';
}
frame 6 {
gotoAndPlay(_currentlabel);
}
frame 7 {
_currentlabel = 'blink';
}
frame 11 {
_currentlabel = 'endblink';
}
frame 12 {
gotoAndPlay(_currentlabel);
}
frame 13 {
_currentlabel = 'shut';
}
frame 14 {
gotoAndPlay(_currentlabel);
}
}
movieClip 35 {
frame 1 {
_currentlabel = 'smile';
}
frame 2 {
gotoAndPlay(_currentlabel);
}
frame 3 {
_currentlabel = 'open';
}
frame 4 {
gotoAndPlay(_currentlabel);
}
frame 5 {
_currentlabel = 'oh';
}
frame 6 {
gotoAndPlay(_currentlabel);
}
frame 7 {
_currentlabel = 'laugh';
}
frame 11 {
gotoAndPlay(_currentlabel);
}
frame 12 {
_currentlabel = 'blush';
}
frame 13 {
gotoAndPlay(_currentlabel);
}
}
movieClip 43 {
}
movieClip 57 {
}
movieClip 59 {
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 70 {
}
movieClip 71 {
}
movieClip 74 {
}
// unknown tag 88 length 129
movieClip 80 {
}
movieClip 82 {
}
movieClip 85 {
}
movieClip 87 {
}