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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

An example is also in the animations.fla file in the ActionScript samples folder at<br />

www.adobe.com/go/learn_fl_samples. Download <strong>and</strong> decompress the .zip file <strong>and</strong> navigate to<br />

the folder for your version of ActionScript to access the sample.<br />

See also<br />

getInstanceAtDepth (MovieClip.getInstanceAtDepth method),<br />

getNextHighestDepth (MovieClip.getNextHighestDepth method), getNewTextFormat<br />

(TextField.getNewTextFormat method)<br />

_currentframe (MovieClip._currentframe property)<br />

public _currentframe : Number [read-only]<br />

Returns the number of the frame in which the playhead is located in the movie clip's<br />

Timeline.<br />

Example<br />

The following example uses the _currentframe property to direct the playhead of the<br />

actionClip_mc movie clip to advance five frames ahead of its current location:<br />

actionClip_mc.gotoAndStop(actionClip_mc._currentframe + 5);<br />

curveTo (MovieClip.curveTo method)<br />

public curveTo(controlX:Number, controlY:Number, anchorX:Number,<br />

anchorY:Number) : Void<br />

Draws a curve using the current line style from the current drawing position to (anchorX,<br />

anchorY) using the control point that ((controlX, controlY) specifies. The current drawing<br />

position is then set to (anchorX, anchorY). If the movie clip you are drawing in contains<br />

content created with the Flash drawing tools, calls to curveTo() are drawn underneath this<br />

content. If you call the curveTo() method before any calls to the moveTo() method, the<br />

current drawing position defaults to (0,0). 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 />

controlX:Number - An integer that specifies the horizontal position of the control point<br />

relative to the registration point of the parent movie clip.<br />

controlY:Number - An integer that specifies the vertical position of the control point relative<br />

to the registration point of the parent movie clip.<br />

MovieClip 417

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

Saved successfully!

Ooh no, something went wrong!