| Sequencer.as | |
| events | |
| org. | Sequencer class is a sequencer for SILEX sequences. |
| Variables | |
| silex_ptr | Reference to silex main Api object (org.silex.core.Api). |
| Properties | |
| length | Number of elements in elements_array + the _currentItem if any. |
| Variables | |
| _currentItem | Item representing the sequence being played. |
| Properties | |
| currentItem | |
| Variables | |
| state | State of the sequencer. |
| elements_array | |
| doInNextFrames_array | Store the actions to be done on next frame. |
| Functions | |
| Sequencer | Constructor. |
| removeAll | Remove all elements except the sequence which is curently running. |
| addItem | Adds an item to elements_array and starts the process (i.e. |
| playSequence | Starts the process. |
| pauseSequence | Pauses the process. |
| stopSequence | Stops the process. |
| nextSequence | Skip to the next sequence. |
| onEnterFrame | Dispatch onEnterFrame event. |
| doInNFrames | do an action in a certain number of frames |
| doInNextFrame | do an action in the next frame |
UIObject |
org.silex.core.Sequencer |
Sequencer class is a sequencer for SILEX sequences. Each sequence starts when the previous one has ended. At the end of a sequence, the corresponding callback function is called and the next sequence starts. If an item was added to the sequencer with no sequence specifyed, the callback is called immediately after start and the next sequence starts. in the repository : /trunk/core/Sequencer.as
1
Alexandre Hoyau
| Variables | |
| silex_ptr | Reference to silex main Api object (org.silex.core.Api). |
| Properties | |
| length | Number of elements in elements_array + the _currentItem if any. |
| Variables | |
| _currentItem | Item representing the sequence being played. |
| Properties | |
| currentItem | |
| Variables | |
| state | State of the sequencer. |
| elements_array | |
| doInNextFrames_array | Store the actions to be done on next frame. |
| Functions | |
| Sequencer | Constructor. |
| removeAll | Remove all elements except the sequence which is curently running. |
| addItem | Adds an item to elements_array and starts the process (i.e. |
| playSequence | Starts the process. |
| pauseSequence | Pauses the process. |
| stopSequence | Stops the process. |
| nextSequence | Skip to the next sequence. |
| onEnterFrame | Dispatch onEnterFrame event. |
| doInNFrames | do an action in a certain number of frames |
| doInNextFrame | do an action in the next frame |
var elements_array: Array
function addItem( item: MovieClip, callback: Function, startCallback: Function, autoEndDetection: Boolean )
Adds an item to elements_array and starts the process (i.e. calls play()) if it was stopped (i.e. if elements_array was empty / state is set to silex_ptr.config.SEQUENCER_STATE_STOP).
| item | the sequence to be added |
| callback | the function to call at the end |
Reference to silex main Api object (org.silex.core.Api).
private var silex_ptr: org.silex.core.Api
Number of elements in elements_array + the _currentItem if any.
function get length():Number
Item representing the sequence being played.
private var _currentItem: Object
function get currentItem():Object
State of the sequencer.
var state: String
var elements_array: Array
Store the actions to be done on next frame.
var doInNextFrames_array: Array
Constructor.
function Sequencer( api: org.silex.core.Api )
Remove all elements except the sequence which is curently running.
function removeAll()
Adds an item to elements_array and starts the process (i.e.
function addItem( item: MovieClip, callback: Function, startCallback: Function, autoEndDetection: Boolean )
Starts the process.
function playSequence()
Pauses the process.
function pauseSequence()
Stops the process.
function stopSequence()
Skip to the next sequence.
function nextSequence()
Dispatch onEnterFrame event.
function onEnterFrame()
do an action in a certain number of frames
function doInNFrames( nFrames: Number, callback: Function, arguments_obj: Object )
do an action in the next frame
function doInNextFrame( callback: Function, arguments_obj: Object )