| Package | org.flintparticles.common.counters |
| Class | public class KeyDownCounter |
| Inheritance | KeyDownCounter Object |
| Implements | Counter |
| Property | Defined By | ||
|---|---|---|---|
| complete : Boolean [read-only]
Indicates if the counter has emitted all its particles. | KeyDownCounter | ||
| counter : Counter
The counter to use when the key is down. | KeyDownCounter | ||
| keyCode : uint
The key code of the key that controls the counter. | KeyDownCounter | ||
| running : Boolean [read-only]
Indicates if the counter is currently emitting particles
| KeyDownCounter | ||
| stage : Stage
A reference to the stage
| KeyDownCounter | ||
| Method | Defined By | ||
|---|---|---|---|
KeyDownCounter(counter:Counter = null, keyCode:uint = 0, stage:Stage = null)
The constructor creates a ZonedAction action for use by
an emitter. | KeyDownCounter | ||
resume():void
Resumes the emitter after a stop
| KeyDownCounter | ||
startEmitter(emitter:Emitter):uint | KeyDownCounter | ||
stop():void
Stops the emitter from emitting particles
| KeyDownCounter | ||
updateEmitter(emitter:Emitter, time:Number):uint
The updateEmitter method is called every frame after the
emitter has started. | KeyDownCounter | ||
| complete | property |
complete:Boolean [read-only] Indicates if the counter has emitted all its particles.
public function get complete():Boolean| counter | property |
counter:CounterThe counter to use when the key is down.
public function get counter():Counter public function set counter(value:Counter):void| keyCode | property |
keyCode:uintThe key code of the key that controls the counter.
public function get keyCode():uint public function set keyCode(value:uint):void| running | property |
running:Boolean [read-only] Indicates if the counter is currently emitting particles
public function get running():Boolean| stage | property |
stage:StageA reference to the stage
public function get stage():Stage public function set stage(value:Stage):void| KeyDownCounter | () | Constructor |
public function KeyDownCounter(counter:Counter = null, keyCode:uint = 0, stage:Stage = null)The constructor creates a ZonedAction action for use by an emitter. To add a ZonedAction to all particles created by an emitter, use the emitter's addAction method.
Parameterscounter:Counter (default = null) — The counter to use when the key is down.
| |
keyCode:uint (default = 0) — The key code of the key that controls the counter.
| |
stage:Stage (default = null) — A reference to the stage.
|
See also
| resume | () | method |
public function resume():voidResumes the emitter after a stop
| startEmitter | () | method |
| stop | () | method |
public function stop():voidStops the emitter from emitting particles
| updateEmitter | () | method |
public function updateEmitter(emitter:Emitter, time:Number):uintThe updateEmitter method is called every frame after the emitter has started.
This method is called within the emitter's update loop and need not be called by the user.
Parameters
emitter:Emitter — The emitter
| |
time:Number — The time, in seconds, since the previous call to this method.
|
uint — The number of particles the emitter should emit
at this time.
|