Returns the duration of the currently playing asset.
If a given
inFrames
is
true
, the return value is the duration in number of frames. Otherwise, returns the duration in seconds.
void gotoAndPlay ( int frame ) |
Plays the asset from the given frame .
Plays the asset from the frame that has a marker with the given
frameMarker
。返回
true
if the frameMarker was found,
false
否则。
void gotoAndStop ( int frame ) |
Moves the playhead to the given frame and stops.
Moves the playhead to the given marker and stops. Returns
true
if
frameMarker
was found,
false
否则。
void pause () |
Pauses the playback.
void play () |
Starts or continues playing from the current position.
void start () |
Starts playing the animation from the beginning.
void stop () |
Stops the playback and returns to startFrame .
void togglePause () |
Toggles the status of player between playing and paused states.