MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 507

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

Advertisement

Description
Method; converts the
(local) coordinates.
Example
The following example converts the global x and y coordinates of the
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();
}
See also
MovieClip.getBounds()
MovieClip.gotoAndPlay()
Availability
Flash Player 5.
Usage
my_mc.gotoAndPlay(frame)
Parameters
A number representing the frame number, or a string representing the label of the frame,
frame
to which the playhead is sent.
Returns
Nothing.
Description
Method; starts playing the SWF file at the specified frame. If you want to specify a scene as well as
a frame, use
gotoAndPlay()
MovieClip.gotoAndStop()
Availability
Flash Player 5.
Usage
my_mc.gotoAndStop(frame)
Parameters
The frame number to which the playhead is sent.
frame
object from Stage (global) coordinates to the movie clip's
point
,
MovieClip.localToGlobal()
.
object to the local
point
MovieClip.gotoAndStop()
507

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