| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The CommandMS class manages a Commands list to execute
on using timer tick.
public function CommandMS()
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates new CommandMS instance.
protected function _delay(sN:String):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Executes a delay call.
Parameters
| sN:String — Command to execute
|
protected function _getNameID():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns a unique identifier.
Returns
protected function _notify(s:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds command registered with passed-in identifier into
execution list.
Parameters
| s:String — Command identifier
|
Returns
protected function _push(oC:Command, nMs:Number, sN:String):String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Registers passed-in command with passed-in name.
Parameters
| oC:Command — Command to push
|
| |
| nMs:Number — Command execution timer
|
| |
| sN:String — Command identifier
|
Returns
protected function _remove(s:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Parameters
Returns
protected function _stop(s:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Removes command registered with passed-in identifier.
Parameters
| s:String — Command identifier
|
Returns
public function delay(oC:Command, nMs:Number):String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Stores passed-in command and wait for
passed-in timer before executes it.
Command is removed after execution.
An identifier name is automatically build
Parameters
| oC:Command — Command to delayed
|
| |
| nMs:Number — Command execution timer
|
Returns
| String — The command identifier name in list
|
public function getLength():Number
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns execution list length.
Returns
| Number — The execution list length.
|
public function push(oC:Command, nMs:Number):String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds passed-in command to execution list and execute it now.
An identifier name is automatically build
Parameters
| oC:Command — Command to add
|
| |
| nMs:Number |
Returns
| String — The command identifier name in list
|
See also
public function pushWithName(oC:Command, nMs:Number, sN:String = null):String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Adds passed-in command to execution list and executes it now.
Parameters
| oC:Command — Command to add
|
| |
| nMs:Number — Command execution timer
|
| |
| sN:String (default = null) — Command identifier
|
Returns
| String — The command identifier name in list
|
public function remove(oC:Command):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Removes passed-in command from execution list.
Parameters
Returns
| Boolean — true if command is removed
|
public function removeAll():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Removes all objects from execution list and from buffer.
public function removeWithName(sN:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Removes command registered with passed-in name from
execution list.
Parameters
| sN:String — Name of the command remove
|
Returns
| Boolean — true if command is removed
|
See also
public function resume(oC:Command):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Submits passed-in command into execution list.
Parameters
| oC:Command — Command to submit to execution list.
|
Returns
public function resumeWithName(sN:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Submits command registered with passed-in name
into execution list.
Parameters
| sN:String — Command identifier
|
Returns
public function stop(oC:Command):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Excludes passed-in command from execution list.
Command still in buffer, use resume() to
replace command in execution list.
Parameters
| oC:Command — Command to exclude form execution list.
|
Returns
public function stopWithName(sN:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Excludes command registered with passed-in name
from execution list.
Command still in buffer, use resumeWithName() to
replace command in execution list.
Parameters
| sN:String — Command identifier
|
Returns
public function toString():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns string representation of instance.
Returns
| String — The string representation of instance.
|
LowRA API documentation 2008- 2009
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1
mer. févr. 25 2009, 9:22 AM GMT+01:00