852
ActionScript classes
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 Player 4
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 that you are drawing in contains
content that was created with the Flash drawing tools, calls to the
curveTo()
method are
drawn underneath this content. If you call the
curveTo()
method before any calls to the
moveTo()
method, the current drawing position is set to the default (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 Player 6
Parameters
controlX
:Number
- An integer that specifies the horizontal position of the control point
relative to the registration point of the parent movie clip.
controlY
:Number
- An integer that specifies the vertical position of the control point relative
to the registration point of the parent movie clip.
anchorX
:Number
- An integer that specifies the horizontal position of the next anchor point
relative to the registration point of the parent movie clip.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...