Combined Code
frame 1 {
function grow() {
if (size < husky.belly._totalframes) {
++size;
husky.belly.gotoAndStop(size);
husky.lbreast.gotoAndStop(size);
husky.rbreast.gotoAndStop(size);
husky.lleg.gotoAndStop(size);
husky.rleg.gotoAndStop(size);
} else {
growth = 0;
}
}
function revert() {
if (size > 1) {
--size;
husky.belly.gotoAndStop(size);
husky.lbreast.gotoAndStop(size);
husky.rbreast.gotoAndStop(size);
husky.lleg.gotoAndStop(size);
husky.rleg.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.eye1.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 rubstate = 0;
var rubframe = 0;
var curState = new Object();
var birth = 0;
var birthStage = 0;
var lockFocus = 0;
var efocus = 0;
var state = '';
states.sleeping = {'eye': 'closed', 'mouth': 'closed', 'canBlink': false};
states.idle = {'eye': 'open', 'mouth': 'smile', 'canBlink': true};
states.cute = {'eye': 'open', 'mouth': 'smile', 'canBlink': false};
states.lulz = {'eye': 'open', 'mouth': 'open', 'canBlink': true};
states.bellyExpand = {'eye': 'wide', 'mouth': 'oh', 'canBlink': true};
states.revert = {'eye': 'small', 'mouth': 'smile', 'canBlink': false};
states.pain = {'eye': 'small', 'mouth': 'blush', 'canBlink': false};
var canBlink = false;
var blinking = false;
var condition = '';
var timer = 0;
setState('idle');
cont = 0;
emotion.stop();
button_birth.gotoAndStop(1);
husky.belly.stop();
husky.rubarm.stop();
husky.rubarm.ext.stop();
husky.lbreast.stop();
husky.rbreast.stop();
husky.child1._visible = false;
husky.child2._visible = false;
husky.lleg.stop();
husky.rleg.stop();
scan_btn.stop();
auto.stop();
husky.chest.belly.fetus._visible = false;
husky.onEnterFrame = function () {
if (size > 359) {
button_birth.gotoAndStop(2);
} else {
button_birth.gotoAndStop(1);
}
if (birth == 0) {
button_birth._visible = true;
btn_stop._visible = true;
expand_mc._visible = true;
revert_mc._visible = true;
auto._visible = true;
} else {
button_birth._visible = false;
btn_stop._visible = false;
expand_mc._visible = false;
revert_mc._visible = false;
auto._visible = false;
if (birth == 1) {
++birthStage;
emotion.gotoAndStop('waterbroke');
setState('pain');
rubstate = 0;
btn_reset._visible = false;
} else {
btn_reset._visible = true;
}
if (birth == -1) {
setState('cute');
husky.child1._visible = true;
husky.child2._visible = true;
} else {
husky.child1._visible = false;
husky.child2._visible = false;
}
}
if (birthStage > 100) {
emotion.gotoAndStop('peghole');
}
if (birthStage == 10) {
husky.sweatdrop1.play();
}
if (birthStage == 20) {
husky.sweatdrop2.play();
}
if (birthStage == 30) {
husky.sweatdrop3.play();
}
if (birthStage > 150) {
birthShade.play();
}
if (Math.random() > 0.99) {
if (Math.random() < 1 & Math.random() > 0.75) {
if (efocus == 0) {
husky.eye.pupil.gotoAndPlay('left');
husky.eye1.pupil.gotoAndPlay('left');
efocus = 1;
}
}
if (Math.random() < 0.75 & Math.random() > 0.5) {
if (efocus == 0) {
husky.eye.pupil.gotoAndPlay('down');
husky.eye1.pupil.gotoAndPlay('down');
efocus = 1;
}
}
if (Math.random() < 0.5 & Math.random() > 0.25) {
if (efocus == 0) {
husky.eye.pupil.gotoAndPlay('down');
husky.eye1.pupil.gotoAndPlay('down');
efocus = 1;
}
}
if (Math.random() < 0.25 & Math.random() > 0) {
if (efocus == 0) {
husky.eye.pupil.gotoAndPlay('right');
husky.eye1.pupil.gotoAndPlay('right');
efocus = 1;
}
}
}
if (canBlink && Math.random() > 0.99) {
blinking = true;
husky.eye.pupil.gotoAndPlay('blink');
husky.eye1.pupil.gotoAndPlay('blink');
}
if (blinking && husky.eye._currentlabel == 'endblink') {
husky.eye.gotoAndPlay(curState.eye);
husky.eye1.gotoAndPlay(curState.eye);
blinking = false;
}
if (growth == 1) {
grow();
switch (true) {
case size < 5:
emotion.gotoAndStop('none');
break;
case size == 50:
emotion.gotoAndStop('exclaim');
efocus = 0;
husky.eye.pupil.gotoAndPlay('down');
husky.eye1.pupil.gotoAndPlay('down');
setState('bellyExpand');
break;
case size == 51:
lockFocus = 1;
break;
case size == 200:
lockFocus = 0;
setState('bellyExpand');
break;
case size > 300:
emotion.gotoAndStop('pleased');
rubstate = 1;
husky.rubarm.play();
husky.rubarm.ext.play();
setState('lulz');
break;
case size == 360:
setState('lulz');
}
} else {
if (growth == -1) {
revert();
switch (true) {
case size < 5:
setState('idle');
break;
case size > 50 && size < 100:
setState('idle');
break;
case size < 300:
rubstate = 0;
setState('bellyExpand');
break;
case size == 300:
setState('lulz');
}
} else {
if (growth == 0) {
if (true !== size < 5) {
} else {
setState('idle');
}
}
}
}
};
if (size > 359) {
button_birth._visible = true;
} else {
button_birth._visible = false;
}
button_birth.onPress = function () {
if (size > 359) {
birth = 1;
}
};
btn_stop.onPress = function () {
growth = 0;
};
btn_reset.onPress = function () {
setState('idle');
cont = 0;
husky.rubarm.ext.blue.gotoAndStop(1);
emotion.gotoAndStop('none');
husky.belly.gotoAndStop(1);
husky.rubarm.gotoAndStop(1);
husky.rubarm.ext.gotoAndStop(1);
husky.lbreast.gotoAndStop(1);
husky.rbreast.gotoAndStop(1);
husky.child1._visible = false;
husky.child2._visible = false;
husky.lleg.gotoAndStop(1);
husky.rleg.gotoAndStop(1);
scan_btn.stop();
auto.gotoAndStop(2);
size = 0;
birth = 0;
birthStage = 0;
growth = 0;
};
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 10 {
}
movieClip 12 {
}
movieClip 14 {
}
movieClip 21 {
}
movieClip 25 {
}
movieClip 26 {
frame 1 {
gotoAndPlay('hub');
}
frame 15 {
onEnterFrame = function () {
if (_root.lockFocus == 1) {
stop();
} else {
play();
}
};
}
frame 30 {
gotoAndPlay('hub');
}
frame 45 {
onEnterFrame = function () {
if (_root.lockFocus == 1) {
stop();
} else {
play();
}
};
}
frame 60 {
gotoAndPlay('hub');
}
frame 75 {
onEnterFrame = function () {
if (_root.lockFocus == 1) {
stop();
} else {
play();
}
};
}
frame 90 {
gotoAndPlay('hub');
}
frame 105 {
onEnterFrame = function () {
if (_root.lockFocus == 1) {
stop();
} else {
play();
}
};
}
frame 120 {
gotoAndPlay('hub');
}
frame 131 {
gotoAndPlay('hub');
_root.efocus = 0;
}
}
movieClip 35 {
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);
}
frame 15 {
_currentlabel = 'wide';
}
frame 16 {
gotoAndPlay(_currentlabel);
}
}
movieClip 43 {
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 45 {
}
movieClip 47 {
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);
}
frame 15 {
_currentlabel = 'wide';
}
frame 16 {
gotoAndPlay(_currentlabel);
}
}
movieClip 49 {
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 60 {
}
movieClip 64 {
frame 1 {
onEnterFrame = function () {
if (Math.random() > 0.99) {
gotoAndPlay(1);
}
};
}
frame 1 {
stop();
}
}
movieClip 65 {
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 74 {
}
movieClip 76 {
}
movieClip 78 {
}
movieClip 82 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 83 {
frame 75 {
if (_root.rubstate == 1) {
gotoAndPlay(15);
}
}
frame 90 {
stop();
}
}
movieClip 84 {
frame 75 {
if (_root.rubstate == 1) {
gotoAndPlay(15);
}
}
frame 90 {
stop();
}
}
movieClip 87 {
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 88 {
}
movieClip 95 {
}
movieClip 97 {
}
// unknown tag 88 length 146
movieClip 101 {
}
movieClip 103 {
}
movieClip 105 {
}
movieClip 108 {
}
movieClip 110 {
}
movieClip 112 {
}
movieClip 118 {
frame 1 {
stop();
}
frame 50 {
_root.husky.rubarm.gotoAndStop(50);
_root.husky.belly.gotoAndStop(1);
_root.husky.rubarm.ext.gotoAndStop(50);
_root.birth = -1;
_root.birthStage = 0;
}
frame 51 {
_root.emotion.gotoAndStop('pleased');
_root.setState('cute');
_root.husky.rubarm.ext.blue.gotoAndStop(2);
}
frame 100 {
stop();
}
}