EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 517

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.nextFrame() 517
Description
Method; moves the current drawing position to (x, y). If any of the parameters are missing, this
method fails and the current drawing position is not changed.
Example
This example draws a triangle with 5-point, solid magenta lines and no fill. The first line creates
an empty movie clip to draw with. Inside the
with statement, a line type is defined; then the
starting drawing position is indicated by the
moveTo() method.
_root.createEmptyMovieClip( "triangle", 1 );
with ( _root.triangle )
{
lineStyle( 5, 0xff00ff, 100 );
moveTo( 200, 200 );
lineTo( 300,300 );
lineTo( 100, 300 );
lineTo( 200, 200 );
}
See also
MovieClip.createEmptyMovieClip()
, MovieClip.lineStyle(), MovieClip.lineTo()
MovieClip._name
Availability
Flash Player 4.
Usage
my_mc
._name
Description
Property; the instance name of the movie clip specified by my_mc.
MovieClip.nextFrame()
Availability
Flash Player 5.
Usage
my_mc.nextFrame()
Parameters
None.
Returns
Nothing.
Description
Method; sends the playhead to the next frame and stops it.
See also
nextFrame()

Table of Contents

Related product manuals