Hi
I want to be able to diaply different frames of a MC depending on the mouse position.
Ie. mouse position (100,100) => my_MC.gotoAndStop(5)
Ive got the following script:
function GetCoordinates() {
CoordinateX = _root._xmouse;
CoordinateY = _root._ymouse;
trace(CoordinateX);
trace(CoordinateY);
}
GetCoordinates();
However this only diplays the mouse position once - I cant get the function to (when the mouse is moved) diaplay the new coordinates?
Any help will be appreciated.
Thanks,
Mads