Packagecv.orion.output
Classpublic class SteadyOutput
ImplementsIOutput
SubclassesKeyDownOutput, TimedOutput

The SteadyOutput class outputs particles at a predictable rate. This is useful if you just want particles to be outputted and don't care for anything fancy.


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.SteadyOutput;
  
  // First method
  var e:Orion = new Orion(linkageClass, new SteadyOutput(40));
  
  // Second method
  var e2:Orion = new Orion(linkageClass);
  e2.output = new SteadyOutput(40);
  



Public Properties
 PropertyDefined by
  particlesPerSecond : Number
The current rate assigned to SteadyOutput, in particles per second.
SteadyOutput
  paused : Boolean
Gets or sets the paused property
SteadyOutput
Public Methods
 MethodDefined by
  
SteadyOutput(particlesPerSecond:Number = 20)
Controls the output of the particles of the emitter.
SteadyOutput
  
pause():void
Pauses the output class.
SteadyOutput
  
play():void
Resumes or plays the output class.
SteadyOutput
  
update(emitter:Orion):void
This is called everytime the particles are called to update and be redrawn.
SteadyOutput
Protected Methods
 MethodDefined by
  
checkEmit(emitter:Orion):void
Checks if it's time to emit particles and how many.
SteadyOutput
  
updateTimes(emitter:Orion):void
Updates the previous and difference in times.
SteadyOutput
Property detail
particlesPerSecondproperty
public var particlesPerSecond:Number

The current rate assigned to SteadyOutput, in particles per second.

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
SteadyOutput()constructor
public function SteadyOutput(particlesPerSecond:Number = 20)

Controls the output of the particles of the emitter.

Parameters
particlesPerSecond:Number (default = 20) — The rate at which to output particles
Method detail
checkEmit()method
protected function checkEmit(emitter:Orion):void

Checks if it's time to emit particles and how many.

Parameters
emitter:Orion
pause()method 
public function pause():void

Pauses the output class.

play()method 
public function play():void

Resumes or plays the output class.

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.
updateTimes()method 
protected function updateTimes(emitter:Orion):void

Updates the previous and difference in times. This determines when to emit and fix any pause issues.

Parameters
emitter:Orion