![]() ![]() | |
Flash Player 5.
my_mc.globalToLocal(point)
point The name or identifier of an object created with the generic Object class. The object specifies the x and y coordinates as properties.
Nothing.
Method; converts the point object from Stage (global) coordinates to the movie clip's (local) coordinates.
The following example converts the global x and y coordinates of the point object to the local coordinates of the movie clip.
onClipEvent(mouseMove) {point = new object();point.x = _root._xmouse;point.y = _root._ymouse;globalToLocal(point);trace(_root._xmouse +" " + _root._ymouse); trace(point.x + " " + point.y);updateAfterEvent();}
MovieClip.getBounds(), MovieClip.localToGlobal()
![]() ![]() | |