
MovieClip
457
An example is also in the
animations.fla
file in the ActionScript samples folder. The following
list gives typical paths to this folder:
■
Windows: Windows:
boot drive
\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript
■
Macintosh:
Macintosh HD
/Applications/Macromedia Flash 8/Samples and Tutorials/
Samples/ActionScript
See also
getInstanceAtDepth (MovieClip.getInstanceAtDepth method)
,
getNextHighestDepth (MovieClip.getNextHighestDepth method)
,
TextFormat
_currentframe (MovieClip._currentframe property)
public _currentframe :
Number
[read-only]
Returns the number of the frame in which the playhead is located in the movie clip's
Timeline.
Availability:
ActionScript 1.0; Flash Lite 2.0
Example
The following example uses the
_currentframe
property to direct the playhead of the
actionClip_mc
movie clip to advance five frames ahead of its current location:
actionClip_mc.gotoAndStop(actionClip_mc._curren 5);
curveTo (MovieClip.curveTo method)
public curveTo(controlX:
Number
, controlY:
Number
, anchorX:
Number
,
anchorY:
Number
) : Void
Draws a curve using the current line style from the current drawing position to (
anchorX
,
anchorY
) using the control point that (
(controlX
,
controlY
) specifies. The current drawing
position is then set to (
anchorX
,
anchorY
). If the movie clip you are drawing in contains
content created with the Flash drawing tools, calls to
curveTo()
are drawn underneath this
content. If you call the
curveTo()
method before any calls to the
moveTo()
method, the
current drawing position defaults to (0,0). If any of the parameters are missing, this method
fails and the current drawing position is not changed.
You can extend the methods and event handlers of the MovieClip class by creating a subclass.
Availability:
ActionScript 1.0; Flash Lite 2.0
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...