| Package | org.flintparticles.counters |
| Class | public class KeyDownCounter |
| Implements | Counter |
| Property | Defined by | ||
|---|---|---|---|
| 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
KeyDownCounter(counter:Counter, keyCode:uint, stage:Stage)
The constructor creates a ZonedAction action for use by
an emitter.
| KeyDownCounter | ||
|
startEmitter(emitter:Emitter):uint
| KeyDownCounter | ||
|
updateEmitter(emitter:Emitter, time:Number):uint
The updateEmitter method is called every frame after the
emitter has started.
| KeyDownCounter | ||
| 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
| KeyDownCounter | () | constructor |
public function KeyDownCounter(counter:Counter, keyCode:uint, stage:Stage)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 — The counter to use when the key is down.
|
|
keyCode:uint — The key code of the key that controls the counter.
|
|
stage:Stage — A reference to the stage.
|
See also
| startEmitter | () | method |
| updateEmitter | () | method |
public function updateEmitter(emitter:Emitter, time:Number):uintThe updateEmitter method is called every frame after the emitter has started.
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.
|