Frame 1
Mouse.hide();
Symbol 8 MovieClip Frame 1
onEnterFrame = function () {
x = _parent.ball.ox - _x;
y = _parent.ball.oy - _y;
dist = Math.sqrt((x * x) + (y * y));
angle = Math.atan2(x, y);
ang2 = Math.asin(Math.min(0.98, (dist / 4) / _xscale)) - 4.71238898038469;
upper._rotation = (ang2 / Math.PI) * 180;
fore._x = Math.cos(ang2) * 200;
fore._y = Math.sin(ang2) * 200;
upper._x = 0;
upper._y = 0;
fore._rotation = ((-ang2) / Math.PI) * 180;
_rotation = ((((-Math.atan2(-x, -y)) * 180) / Math.PI) + 90);
};
Instance of Symbol 3 MovieClip "ball" in Symbol 10 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this.ox;
this._y = this.oy;
this.ox = this.ox + ((_parent._xmouse - ox) / 4);
this.oy = this.oy + ((_parent._ymouse - oy) / 4);
this.oy = this.oy - 5;
}