How do I get the point inside a rotating movie clip from a point outside of it? Let me show you:
Here I have a movie clip, square, and a point inside it, point.
SWF
The code is:
function onMouseDown()
{
square.point._x = _xmouse - square._x;
square.point._y = _ymouse - square._y;
}
And that is all well and good. But when the square rotates:
SWF
Code:
function onMouseDown()
{
square.point._x = _xmouse - square._x;
square.point._y = _ymouse - square._y;
}
function onEnterFrame()
{
square._rotation++;
}
You see the problem. How would I deal with this?