Frame 1
function DoFrame() {
GetWarmer();
BreathOverride();
if (lips_counter > 0) {
lips_counter--;
} else {
if (right.girl.head.mouth._currentframe < (coldness * 2)) {
right.girl.head.mouth.nextFrame();
left.girl.head.mouth.nextFrame();
}
if (right.girl.head.mouth._currentframe > (coldness * 2)) {
right.girl.head.mouth.prevFrame();
left.girl.head.mouth.prevFrame();
}
lips_counter = 10;
}
txtDebug.text = coldness;
Mousie();
if (breath_delay_counter > 0) {
breath_delay_counter--;
return(undefined);
}
breath_delay_counter = breath_delay;
switch (breath_phase) {
default :
HoldBreathFull();
return;
case 1 :
BreathIn();
return;
case 2 :
BreathOut();
return;
case 3 :
HoldBreathEmpty();
}
}
left.girl.body.stop();
left.girl.body.body2.stop();
left.girl.body.body.stop();
left.girl.arms.stop();
right.girl.body.stop();
right.girl.body.body2.stop();
right.girl.body.body.stop();
right.girl.arms.stop();
var breath_phase = 1;
var lips_counter = 10;
function Mousie() {
if (right.girl.head.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = 7;
GetColder(2.7);
} else if (right.girl.body.rightbreast.nipple.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = (right.girl.body._currentframe / 4) + 7;
GetColder(4);
} else if (right.girl.body.leftbreast.nipple.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = (right.girl.body._currentframe / 4) + 7;
GetColder(4);
} else if (right.girl.body.rightbreast.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = (right.girl.body._currentframe / 4) + 5;
GetColder(2.7);
} else if (right.girl.body.leftbreast.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = (right.girl.body._currentframe / 4) + 5;
GetColder(2.7);
} else if (right.girl.legbox.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = 20;
GetColder(1);
} else if (right.girl.legbox2.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = 20;
GetColder(1);
} else if (right.girl.bodybox.hitTest(rightmouse._x, rightmouse._y)) {
target_mouse_height = 0;
GetColder(1);
} else {
target_mouse_height = -2;
}
if (target_mouse_height < mouse_height) {
mouse_height--;
}
if (target_mouse_height > mouse_height) {
mouse_height++;
}
leftmouse._xscale = 100 + (mouse_height * 3);
rightmouse._xscale = 100 + (mouse_height * 3);
leftmouse._yscale = 100 + (mouse_height * 3);
rightmouse._yscale = 100 + (mouse_height * 3);
MouseVisual();
}
function MouseVisual() {
var _local3;
var _local1;
var _local4;
var _local2;
_local3 = _ymouse;
_local4 = _ymouse;
if (_xmouse < 300) {
_local1 = _xmouse + base_xoff;
_local2 = _xmouse;
} else {
_local1 = _xmouse;
_local2 = _xmouse - base_xoff;
}
_local1 = _local1 + mouse_height;
_local2 = _local2 - mouse_height;
if (mouse_height >= target_mouse_height) {
rightmouse._x = (rightmouse._x + _local1) / 2;
leftmouse._x = (leftmouse._x + _local2) / 2;
rightmouse._y = (rightmouse._y + _local3) / 2;
leftmouse._y = (leftmouse._y + _local4) / 2;
} else {
rightmouse._x = ((rightmouse._x * 3) + _local1) / 4;
leftmouse._x = ((leftmouse._x * 3) + _local2) / 4;
rightmouse._y = ((rightmouse._y * 3) + _local3) / 4;
leftmouse._y = ((leftmouse._y * 3) + _local4) / 4;
}
}
function DistanceFromCenter(obj, x) {
var _local2 = obj._width;
var _local1 = Math.abs(obj._x - x);
_local1 = _local1 / _local2;
_local1 = 1 - _local1;
return(_local1);
}
var base_xoff = (right._x - left._x);
Mouse.hide();
var mouse_height = 2;
var target_mouse_height = 2;
function BreathOverride() {
if (oxygen < 30) {
GetColder(1);
if (breath_delay > 0) {
breath_delay--;
} else {
breath_mult++;
}
}
if (oxygen > 70) {
GetWarmer();
breath_delay = 1;
breath_mult = 1;
}
}
function GetColder(amount) {
oxygen = oxygen - amount;
if (excitement < 15) {
excitement = 15;
} else {
breath_mult = 2;
if (excitement < 20) {
excitement++;
} else {
breath_mult = 3;
}
}
if (coldness < 100) {
coldness = coldness + (amount / 5);
}
}
function GetWarmer() {
if (excitement > 12) {
excitement--;
if (breath_mult > 1) {
breath_mult--;
}
} else {
breath_delay = 1;
}
if (coldness < 2) {
breath_delay = 2;
}
var _local1 = coldness;
if (coldness > 0.1) {
coldness = coldness * 0.99;
} else {
coldness = 0;
}
}
var coldness = 0;
var oxygen = 50;
right.girl.head.mouth.stop();
left.girl.head.mouth.stop();
function BreathFrameChange(frames) {
var _local2 = right.girl.body._currentframe;
while (frames > 0) {
frames--;
left.girl.body.nextFrame();
left.girl.body.body2.nextFrame();
left.girl.body.body.nextFrame();
left.girl.arms.nextFrame();
right.girl.body.nextFrame();
right.girl.body.body2.nextFrame();
right.girl.body.body.nextFrame();
right.girl.arms.nextFrame();
}
while (frames < 0) {
frames++;
left.girl.body.prevFrame();
left.girl.body.body2.prevFrame();
left.girl.body.body.prevFrame();
left.girl.arms.prevFrame();
right.girl.body.prevFrame();
right.girl.body.body2.prevFrame();
right.girl.body.body.prevFrame();
right.girl.arms.prevFrame();
}
if (_local2 == right.girl.body._currentframe) {
return(false);
}
return(true);
}
function BreathIn() {
if (oxygen > 80) {
breath_counter = 1;
}
if (breath_counter > 0) {
breath_counter--;
if (BreathFrameChange(breath_mult)) {
oxygen = oxygen + (5 * breath_mult);
} else {
breath_counter = 20;
breath_phase = 2;
}
} else {
breath_counter = (breath_delay * 4) + 1;
if ((oxygen > 60) && (coldness > 15)) {
breath_counter = breath_counter + coldness;
}
breath_phase = 0;
}
}
function BreathOut() {
if (breath_counter > 0) {
breath_counter--;
if (BreathFrameChange(-breath_mult) && (coldness > 15)) {
if (anim_delay_counter > 0) {
anim_delay_counter--;
} else {
var _local3 = 40 - coldness;
_local3 = _local3 / 5;
anim_delay_counter = (_local3 + (breath_delay * 2)) - (breath_mult * 2);
var _local2 = leftbreath.attachMovie("leftbreathanim", "lb" + animnum, animnum);
var _local4 = rightbreath.attachMovie("leftbreathanim", "lb" + animnum, animnum);
var _local1 = Math.random() * 30;
_local2._x = _local2._x + _local1;
_local4._x = _local4._x + _local1;
_local1 = Math.random() * 30;
_local2._y = _local2._y + _local1;
_local4._y = _local4._y + _local1;
animnum++;
if (animnum > 20) {
animnum = 0;
}
}
}
} else {
if (oxygen < 30) {
breath_counter = 1;
} else {
breath_counter = oxygen - 50;
}
breath_phase = 3;
}
}
function HoldBreathEmpty() {
if (oxygen < 30) {
breath_counter = 0;
}
if (breath_counter > 0) {
if (oxygen < 100) {
breath_counter--;
}
} else {
breath_counter = excitement / breath_mult;
breath_phase = 1;
}
}
function HoldBreathFull() {
if (breath_counter > 0) {
breath_counter--;
} else {
breath_counter = excitement / breath_mult;
breath_phase = 2;
}
}
var breath_counter = 0;
var excitement = 12;
var breath_mult = 1;
var breath_delay = 1;
var breath_delay_counter = breath_delay;
var animnum = 0;
var anim_delay_counter = 0;
Instance of Symbol 64 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.DoFrame();
}
Symbol 3 MovieClip Frame 30
stop();
Symbol 5 MovieClip Frame 30
stop();