MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 514

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

See also
,
loadMovie()
loadVariables()
MovieClip.localToGlobal()
Availability
Flash Player 5.
Usage
my_mc.localToGlobal(point)
Parameters
The name or identifier of an object created with the
point
coordinates as properties.
Returns
Nothing.
Description
Method; converts the
(global) coordinates.
Example
The following example converts x and y coordinates of the
(local) coordinates to the Stage (global) coordinates. The local x and y coordinates are specified
using the
_xmouse
pointer position.
onClipEvent(mouseMove) {
point = new object();
point.x = _xmouse;
point.y = _ymouse;
_root.out3 = point.x + " === " + point.y;
_root.out = _root._xmouse + " === " + _root._ymouse;
localToGlobal(point);
_root.out2 = point.x + " === " + point.y;
updateAfterEvent();
}
See also
MovieClip.globalToLocal()
514
Chapter 12: ActionScript Dictionary
,
loadVariablesNum()
object from the movie clip's (local) coordinates to the Stage
point
and
properties to retrieve the x and y coordinates of the mouse
_ymouse
,
MovieClip.unloadMovie()
Object
class, specifying the x and y
object, from the movie clip's
point

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?

Questions and answers

Table of Contents