Animation.start

Overview | Methods | This Package | All Packages

Animation.start

Plays the animation clip one time from beginning to end, or plays the animation the specified number of times from the specified start frame to the specified end frame.

Syntax

public final boolean start()

public final boolean start( int repeat, int start, int end )

Parameters

repeat

The number of times to play the animation.

start

The frame on which to start playing.

end

The frame on which to stop playing. A value of -1 indicates that the clip should be played to the end.

Return Value

Returns true if the start operation succeeded; otherwise, returns false.

Remarks

To get the value of the useTimer property, use the getUseTimer method. For a code example using the start method, see the Animation control topic.