03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

moveTo (MovieClip.moveTo method)<br />

public moveTo(x:Number, y:Number) : Void<br />

Moves the current drawing position to (x, y). If any of the parameters are missing, this method<br />

fails <strong>and</strong> the current drawing position is not changed.<br />

You can extend the methods <strong>and</strong> event h<strong>and</strong>lers of the MovieClip class by creating a subclass.<br />

Parameters<br />

x:Number - An integer indicating the horizontal position relative to the registration point of<br />

the parent movie clip.<br />

y:Number - An integer indicating the vertical position relative to the registration point of the<br />

parent movie clip.<br />

Example<br />

The following example draws a triangle with a 5-pixel, solid magenta line <strong>and</strong> a partially<br />

transparent blue fill:<br />

this.createEmptyMovieClip("triangle_mc", 1);<br />

triangle_mc.beginFill(0x0000FF, 30);<br />

triangle_mc.lineStyle(5, 0xFF00FF, 100);<br />

triangle_mc.moveTo(200, 200);<br />

triangle_mc.lineTo(300, 300);<br />

triangle_mc.lineTo(100, 300);<br />

triangle_mc.lineTo(200, 200);<br />

triangle_mc.endFill();<br />

See also<br />

createEmptyMovieClip (MovieClip.createEmptyMovieClip method), lineStyle<br />

(MovieClip.lineStyle method), lineTo (MovieClip.lineTo method)<br />

_name (MovieClip._name property)<br />

public _name : String<br />

The instance name of the movie clip.<br />

See also<br />

_name (Button._name property)<br />

nextFrame (MovieClip.nextFrame method)<br />

public nextFrame() : Void<br />

MovieClip 449

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!