Packageorg.flintparticles.common.counters
Classpublic class ZeroCounter
InheritanceZeroCounter Inheritance Object
Implements Counter

The Zero counter causes the emitter to emit no particles. Because the emitter requires a counter, this counter is used as the default and should be used whenever you don't want a counter.



Public Properties
 PropertyDefined By
  complete : Boolean
[read-only] Indicates if the counter has emitted all its particles.
ZeroCounter
  running : Boolean
[read-only] Indicates if the counter is currently emitting particles
ZeroCounter
Public Methods
 MethodDefined By
  
The constructor creates a Zero counter for use by an emitter.
ZeroCounter
  
resume():void
Does nothing
ZeroCounter
  
startEmitter(emitter:Emitter):uint
Returns 0 to indicate that the emitter should emit no particles when it starts.
ZeroCounter
  
stop():void
Does nothing
ZeroCounter
  
updateEmitter(emitter:Emitter, time:Number):uint
Returns 0 to indicate that the emitter should emit no particles.
ZeroCounter
Property Detail
completeproperty
complete:Boolean  [read-only]

Indicates if the counter has emitted all its particles. For the ZeroCounter this will always be true.


Implementation
    public function get complete():Boolean
runningproperty 
running:Boolean  [read-only]

Indicates if the counter is currently emitting particles


Implementation
    public function get running():Boolean
Constructor Detail
ZeroCounter()Constructor
public function ZeroCounter()

The constructor creates a Zero counter for use by an emitter. To add a Zero counter to an emitter use the emitter's counter property.

See also

Method Detail
resume()method
public function resume():void

Does nothing

startEmitter()method 
public function startEmitter(emitter:Emitter):uint

Returns 0 to indicate that the emitter should emit no particles when it starts.

This method is called within the emitter's start method and need not be called by the user.

Parameters

emitter:Emitter — The emitter.

Returns
uint — 0

See also

stop()method 
public function stop():void

Does nothing

updateEmitter()method 
public function updateEmitter(emitter:Emitter, time:Number):uint

Returns 0 to indicate that the emitter should emit no particles.

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.

Returns
uint — 0

See also