Package | cv.orion.output |
Class | public class TimedOutput |
Inheritance | TimedOutput ![]() |
Implements | IOutput |
import cv.Orion; import cv.orion.output.TimedOutput; // First method var e:Orion = new Orion(linkageClass, new TimedOutput(1000, 40)); // Second method var e2:Orion = new Orion(linkageClass); e2.output = new TimedOutput(1000, 40);
Property | Defined by | ||
---|---|---|---|
duration : uint
Gets or sets the duration that the particles are outputted.
| TimedOutput | ||
![]() | particlesPerSecond : Number
The current rate assigned to SteadyOutput, in particles per second.
| SteadyOutput | |
![]() | paused : Boolean
Gets or sets the paused property
| SteadyOutput |
Method | Defined by | ||
---|---|---|---|
TimedOutput(duration:uint = 5000, particlesPerSecond:Number = 20)
Controls the duration that the particles are emitted.
| TimedOutput | ||
![]() |
pause():void
Pauses the output class.
| SteadyOutput | |
![]() |
play():void
Resumes or plays the output class.
| SteadyOutput | |
reset():void
After the timer has stopped, you can start the timer again by
resetting it with this method.
| TimedOutput | ||
This is called everytime the particles are called to update and be redrawn.
| TimedOutput |
duration | property |
public var duration:uint
Gets or sets the duration that the particles are outputted.
TimedOutput | () | constructor |
public function TimedOutput(duration:uint = 5000, particlesPerSecond:Number = 20)
Controls the duration that the particles are emitted.
Parametersduration:uint (default = 5000 ) — How long the particles will be emitted, in milliseconds.
|
|
particlesPerSecond:Number (default = 20 ) — The rate at which to output particles
|
reset | () | method |
public function reset():void
After the timer has stopped, you can start the timer again by resetting it with this method.
update | () | method |
public override 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.
Parametersemitter:Orion — The emitter to be used.
|