Packageorg.flintparticles.common.counters
Classpublic class ZeroCounter
ImplementsCounter

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
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
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