Combined Code
frame 1 {
_global.spit = 0;
_global.spd = 3;
_global.acc = 0;
_global.sway = 50;
_global.pleasure = 0;
}
movieClip 2 {
}
movieClip 3 {
frame 1 {
onEnterFrame = function () {
gotoAndPlay(Math.round(_global.sway));
};
}
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 10 {
frame 1 {
onEnterFrame = function () {
gotoAndPlay(Math.round(_global.sway));
};
}
}
movieClip 12 {
}
movieClip 14 {
}
movieClip 16 {
}
movieClip 18 {
}
movieClip 20 {
}
movieClip 23 {
}
movieClip 25 {
}
movieClip 27 {
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 37 {
}
movieClip 38 {
frame 1 {
onEnterFrame = function () {
point = new Object();
point.x = 0;
point.y = 0;
localToGlobal(point);
i = 0;
while (_root.dick.mask.hitTest(point.x, point.y, 1)) {
++i;
if (i == 10) {
break;
}
if (_parent._currentframe < 100) {
_parent.nextFrame();
} else {
break;
}
point.x = 0;
point.y = 0;
localToGlobal(point);
}
i = 0;
while (!_root.dick.mask.hitTest(point.x, point.y - 2, 1)) {
++i;
if (i == 10) {
break;
}
if (_parent._currentframe > 0) {
_parent.prevFrame();
} else {
break;
}
point.x = 0;
point.y = 0;
localToGlobal(point);
}
_root.mark._x = point.x;
_root.mark._y = point.y;
};
}
}
movieClip 40 {
frame 1 {
point = new Object();
onEnterFrame = function () {
point.x = 0;
point.y = 0;
localToGlobal(point);
_root.mask._x = point.x;
_root.mask._y = point.y;
_root.mask._yscale = _yscale;
_root.mask._rotation = _rotation + _parent._rotation + _parent._parent._rotation;
};
}
}
movieClip 42 {
}
movieClip 43 {
frame 1 {
stop();
onEnterFrame = function () {
_root.mouthcover.mouth.gotoAndStop(_currentframe);
};
}
frame 100 {
stop();
}
}
movieClip 45 {
}
movieClip 47 {
}
movieClip 48 {
frame 1 {
onEnterFrame = function () {
gotoAndPlay(Math.round(_global.sway));
};
}
}
movieClip 50 {
}
movieClip 51 {
frame 1 {
onEnterFrame = function () {
gotoAndPlay(Math.round(_global.sway));
};
}
}
movieClip 53 {
}
movieClip 55 {
}
movieClip 56 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.th;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 57 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.tg;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 59 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.tf;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 61 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.te;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 63 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.td;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 65 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.tc;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 66 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.tb;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 67 {
frame 1 {
hspd = 0;
vspd = 0;
par = _parent.ta;
onEnterFrame = function () {
xx = par._x;
yy = par._y + _parent.leng;
hspd += (xx - _x) / _parent.acc;
vspd += (yy - _y) / _parent.acc;
hspd /= _parent.fric;
vspd /= _parent.fric;
_x = _x + hspd;
_y = _y + vspd;
par._rotation = 90 + Math.atan2(par._y - _y, par._x - _x) * 180 / Math.PI;
par.con._yscale = Math.sqrt((_x - par._x) * (_x - par._x) + (_y - par._y) * (_y - par._y)) * _parent.str;
};
}
}
movieClip 70 {
frame 1 {
onEnterFrame = function () {
_x = -_parent._x;
_y = -_parent._y;
};
}
}
movieClip 71 {
frame 1 {
fric = 2.3;
acc = 1.5;
str = 10;
leng = 40;
onEnterFrame = function () {
_x = (_parent._x + _parent._parent._x) / 3;
_y = (_parent._y + _parent._parent._y) / 3;
};
}
}
movieClip 72 {
frame 1 {
}
}
movieClip 74 {
}
movieClip 75 {
frame 1 {
onEnterFrame = function () {
gotoAndPlay(Math.round(_global.sway));
};
}
}
movieClip 77 {
}
movieClip 78 {
frame 1 {
onEnterFrame = function () {
gotoAndPlay(Math.round(_global.sway));
};
}
}
movieClip 79 {
frame 1 {
onEnterFrame = function () {
point = new Object();
point.x = 0;
point.y = 0;
localToGlobal(point);
i = 0;
while (!_root.dick.mask.hitTest(point.x, point.y, 1)) {
++i;
if (i == 90) {
break;
}
if (_parent._currentframe < 50) {
_parent.nextFrame();
} else {
break;
}
point.x = 0;
point.y = 0;
localToGlobal(point);
}
i = 0;
while (_root.dick.mask.hitTest(point.x, point.y + 2, 1)) {
++i;
if (i == 90) {
break;
}
if (_parent._currentframe > 0) {
_parent.prevFrame();
} else {
break;
}
point.x = 0;
point.y = 0;
localToGlobal(point);
}
i = 0;
while (_root.dick.head.hitTest(point.x, point.y + 1, 1)) {
++i;
if (i == 10) {
break;
}
_root.dick.head._yscale -= 0.1;
}
i = 0;
while (!_root.dick.head.hitTest(point.x, point.y + 2, 1)) {
++i;
if (i == 10) {
break;
}
if (_root.dick.head._yscale < 100) {
_root.dick.head._yscale += 0.1;
}
}
};
}
}
movieClip 80 {
frame 1 {
onEnterFrame = function () {
_root.mouthcover.gotoAndStop(_currentframe);
};
}
}
movieClip 82 {
}
movieClip 84 {
}
movieClip 86 {
}
movieClip 88 {
}
movieClip 90 {
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 95 {
}
movieClip 96 {
}
movieClip 97 {
}
movieClip 99 {
}
instance control of movieClip 99 {
onClipEvent (enterFrame) {
frame = _root._currentframe;
if (_global.spit < frame) {
_global.spit = frame;
}
mouse = Math.round(_root._xmouse) / 3;
mov = Math.round((frame * _global.spd + mouse) / (_global.spd + 1));
if (mov < 5) {
mov = 5;
}
if (mov > 120) {
mov = 120;
}
_global.sway += frame - mov;
_root.gotoAndStop(mov);
_global.acc += (_global.sway - 50) / 15;
_global.acc /= 1.2;
_global.sway -= _global.acc;
if (_global.sway < 1) {
_global.sway = 1;
}
if (_global.sway > 100) {
_global.sway = 100;
}
_global.sway += (-_global.sway + 50) / 10;
}
}