Packagecv.orion.output
Classpublic class BurstOutput
ImplementsIOutput

The BurstOutput class adds the specified number of particles all at once, then doesn't add any new particles. This is useful if you want to just setup a system of say 10 particles and leave it a that.


Example
There are two ways to control output. The first way it so set it in the constructor. The second way is to add it via the output property.
  import cv.Orion;
  import cv.orion.output.BurstOutput;
  
  // First method
  var e:Orion = new Orion(linkageClass, new BurstOutput(40));
  
  // Second method
  var e2:Orion = new Orion(linkageClass);
  e2.output = new BurstOutput(40);
  



Public Properties
 PropertyDefined by
  continous : Boolean = false
Gets or sets whether this is outputted regularly at each render event.
BurstOutput
  particles : uint
Gets or sets the number of particles to be outputted.
BurstOutput
  paused : Boolean
Gets or sets the paused property
BurstOutput
Public Methods
 MethodDefined by
  
BurstOutput(numOfParticles:uint = 10, continous:Boolean = false)
Controls the number of particles that are emitted.
BurstOutput
  
pause():void
Pauses the output class.
BurstOutput
  
play():void
Resumes or plays the output class.
BurstOutput
  
reset():void
To have the particles emitted again, call this method.
BurstOutput
  
update(emitter:Orion):void
This is called everytime the particles are called to update and be redrawn.
BurstOutput
Property detail
continousproperty
public var continous:Boolean = false

Gets or sets whether this is outputted regularly at each render event.

particlesproperty 
public var particles:uint

Gets or sets the number of particles to be outputted.

pausedproperty 
paused:Boolean  [read-write]

Gets or sets the paused property

Implementation
    public function get paused():Boolean
    public function set paused(value:Boolean):void
Constructor detail
BurstOutput()constructor
public function BurstOutput(numOfParticles:uint = 10, continous:Boolean = false)

Controls the number of particles that are emitted.

Parameters
numOfParticles:uint (default = 10) — How manu particles to add at once.
 
continous:Boolean (default = false)
Method detail
pause()method
public function pause():void

Pauses the output class.

play()method 
public function play():void

Resumes or plays the output class.

reset()method 
public function reset():void

To have the particles emitted again, call this method.

update()method 
public function update(emitter:Orion):void

This is called everytime the particles are called to update and be redrawn. Depending on the output class, this can determine the output of the particles.

Parameters
emitter:Orion — The emitter to be used.