| Package | org.flintparticles.common.counters |
| Class | public class KeyDownCounter |
| 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 | ||
| 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.
Implementation public function get complete():Boolean
| counter | property |
counter:Counter [read-write]The counter to use when the key is down.
Implementation public function get counter():Counter
public function set counter(value:Counter):void
| keyCode | property |
keyCode:uint [read-write]The key code of the key that controls the counter.
Implementation public function get keyCode():uint
public function set keyCode(value:uint):void
| stage | property |
stage:Stage [read-write]A reference to the stage
Implementation 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.
Parametersemitter: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.
|