
MovieClip.localToGlobal() Method
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
672
|
ActionScript Language Reference
Description
The MovieClip.loadVariables() method is an alternative to the global loadVariables() func-
tion. When invoked as a MovieClip method, loadVariables() takes no
target parameter; it
loads the variables at
url into mc. The MovieClip method syntax is less prone to user error
than its global function counterpart because no
target parameter is required.
For usage instructions, see the global loadVariables() function. As of Flash 6, the LoadVars
class is preferred over MovieClip.loadVariables(), as it provides a more flexible and
powerful means of importing and exporting variables.
See Also
loadVariables(), the LoadVars class; “Method Versus Global Function Overlap Issues” in
Chapter 13
MovieClip.localToGlobal() Method
convert a point in a clip to main Stage coordinates
Flash 5
mc.localToGlobal(point)
Arguments
point A reference to an object with two properties, x and y, that describe a point in
mc’s coordinate space. Both x and y can be any floating-point number.
Description
The localToGlobal() method converts the x and y properties of point from coordinates
given in
mc’s coordinate space to coordinates on the main Stage of the Player. Note that
localToGlobal() does not return a new object; it merely modifies the existing ...