Combined Code
movieClip 5 cat {
}
frame 1 {
function onMouseDown() {
xvar = 0;
_root.onEnterFrame = function () {
xvar += 1;
cat.play();
cat._rotation += 6 * xvar * Math.pow(2.718281828, -0.05 * xvar) + 3;
cat._x = _xmouse;
cat._y = _ymouse;
};
}
function onMouseUp() {
if (this._rotation <= 0) {
_root.onEnterFrame = function () {
cat._rotation += zvar;
zvar *= zvar;
cat.gotoAndStop(1);
cat._x = _xmouse;
cat._y = _ymouse;
};
} else {
cat._rotation *= xvar;
xvar = -0.9;
cat._x = _xmouse;
cat._y = _ymouse;
}
}
stop();
cat.stop();
var xvar = 0;
var zvar = 0.9;
_root.onEnterFrame = function () {
if (startMoving == true) {
cat._rotation = 0;
cat._x = _xmouse;
cat._y = _ymouse;
}
};
cat.onRollOver = function () {
startMoving = true;
};
}