| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
The CommandFPS class manages a Commands list to execute
on each frame (FPS).
public function CommandFPS()
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Creates new ComandFPS instance.
protected function _delay(oC:Command, sN:String):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Executes a delay call.
Parameters
| oC:Command — Command to execute
|
| |
| sN:String — Command identifier
|
protected function _getNameID():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns a unique identifier.
Returns
protected function _push(oC:Command, 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
|
| |
| sN:String — Command identifier
|
Returns
protected function _remove(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
protected function _resume(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 _stop(s:String):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Excludes command registered with passed-in identifier
from execution list.
Parameters
| s:String — Command identifier
|
Returns
public function delay(oC:Command):String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Stores passed-in command and wait for
a loop before executes it.
Command is removed after execution.
An identifier name is automatically build
Parameters
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 onTick(e:Event = null):void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Method called by the TickBeacon for each
step of time according to its time slicing approach.
The onTick method is very similar to the
old onEnterFrame method, but doesn't specifically
occurs when entering in a new frame of a frame-based animation.
The tick could be the result of a setInterval call,
or a change in the timecode of a video.
Parameters
| e:Event (default = null) — event dispatched by the beacon object
|
public function push(oC:Command):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
Returns
| String — The command identifier name in list
|
See also
public function pushWithName(oC:Command, 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
|
| |
| 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