| Package | org.goasap.interfaces |
| Interface | public interface IPlayable extends flash.events.IEventDispatcher |
| Implementors | LinearGo, PlayableGroup, SequenceAdvance, SequenceBase |
This interface extends IEventDispatcher since playable items typically
dispatch GoEvents, and combining the interfaces allows utilities to assume
that they can use addEventListener() on IPlayable items.
Note: GoASAP's IPlayable structure was simplified at version 0.5.0 and now differs slightly from the information found in the Friends of Ed book, "The Essential Guide to Open Source Flash Development". Please regard the following changes:
state property was moved into the IPlayable interface, and the
playableID property is now treated as an optional convention.PLAYING, etc.) have been moved into
a new class called PlayStates.See also
| Property | Defined by | ||
|---|---|---|---|
| state : String [read-only]
Normally this should return a PlayStates constant.
| IPlayable | ||
| Method | Defined by | ||
|---|---|---|---|
|
pause():Boolean
Pause play.
| IPlayable | ||
|
resume():Boolean
Resume paused play.
| IPlayable | ||
|
skipTo(position:Number):Boolean
| IPlayable | ||
|
start():Boolean
Start playing.
| IPlayable | ||
|
stop():Boolean
Stop playing.
| IPlayable | ||
| state | property |
state:String [read-only]Normally this should return a PlayStates constant.
Implementation public function get state():String
| pause | () | method |
public function pause():BooleanPause play.
ReturnsBoolean |
| resume | () | method |
public function resume():BooleanResume paused play.
ReturnsBoolean |
| skipTo | () | method |
public function skipTo(position:Number):BooleanParameters
position:Number — Index indicating point in animation to skipTo.
(Remember that you can rename paramters when
implementing an interface in AS3, for example
"seconds" or "index" instead of "position.")
|
Boolean |
| start | () | method |
public function start():BooleanStart playing.
ReturnsBoolean |
| stop | () | method |
public function stop():BooleanStop playing.
ReturnsBoolean |