EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 507

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MovieClip.gotoAndStop() 507
Description
Method; converts the point object from Stage (global) coordinates to the movie clips
(local) coordinates.
Example
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();
}
See also
MovieClip.getBounds()
, MovieClip.localToGlobal()
MovieClip.gotoAndPlay()
Availability
Flash Player 5.
Usage
my_mc.gotoAndPlay(frame)
Parameters
frame
A number representing the frame number, or a string representing the label of the 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
frame
The frame number to which the playhead is sent.

Table of Contents

Related product manuals