| Package | com.flashdynamix.motion.extras |
| Class | public class Emitter |
| Inheritance | Emitter flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| angle : *
The angle in degrees to allow the particles to move to :
| Emitter | ||
| delay : Number = 0
The amount of delay in seconds before a particle begins to move to its target destination.
| Emitter | ||
| distance : *
The distance to allow particles to move to :
| Emitter | ||
| ease : Function
The ease equation used for the particle motion animations
| Emitter | ||
| endColor : ColorTransform
Allows for tweening the particles color over its lifespan.
This value can be an Object defining the target redOffset, blueOffset, greenOffset etc. Or it can be a ColorTransform defining the end color. | Emitter | ||
| frequency : int
How many particles are created on each ENTER_FRAME.
| Emitter | ||
| holder : Sprite
The container Sprite for particles.
| Emitter | ||
| random : Number
How often particles are created on each ENTER_FRAME.
If 0.5 particles will only be created half the time. | Emitter | ||
| refreshType : String
The timing system currently in use.
This can be either :
| Emitter | ||
| running : Boolean = false
Defines whether the Emitter is rendering.
| Emitter | ||
| scale : Number
Gets the scale of the Emmitter.
| Emitter | ||
| secondsPerFrame : Number | Emitter | ||
| speed : Number
The time in seconds it takes for a particle to get to its end position.
| Emitter | ||
| startDistance : Number = 0
The distance in pixels to start the particle Object at.
| Emitter | ||
| target : Object
Additional properties to tween during the particle's lifespan.
i.e. | Emitter | ||
| Method | Defined by | ||
|---|---|---|---|
|
Emitter(Particle:Class, target:Object = null, frequency:int = 5, random:Number = 1, angle:Number = 0,360, distance:String = "20", speed:* = 1, blendMode:* = normal)
| Emitter | ||
|
Clones the Emmitter and returns a new instance.
| Emitter | ||
|
dispose():void
Disposes the Emitter Class ready for garbage collection
| Emitter | ||
|
pause():void
Pauses all playing particle tweens.
| Emitter | ||
|
resume():void
Resumes all paused particle tweens.
| Emitter | ||
|
start():void
Starts adding particle tweens on each ENTER_FRAME.
| Emitter | ||
|
stop():void
Stops adding particle tweens on each ENTER_FRAME.
| Emitter | ||
| Method | Defined by | ||
|---|---|---|---|
|
addEvent(item:EventDispatcher, type:String, liststener:Function, priority:int = 0, useWeakReference:Boolean = true):void
| Emitter | ||
|
removeEvent(item:EventDispatcher, type:String, listener:Function):void
| Emitter | ||
| angle | property |
public var angle:*
The angle in degrees to allow the particles to move to :
| delay | property |
public var delay:Number = 0The amount of delay in seconds before a particle begins to move to its target destination.
| distance | property |
public var distance:*
The distance to allow particles to move to :
| ease | property |
public var ease:FunctionThe ease equation used for the particle motion animations
| endColor | property |
public var endColor:ColorTransform
Allows for tweening the particles color over its lifespan.
This value can be an Object defining the target redOffset, blueOffset, greenOffset etc.
Or it can be a ColorTransform defining the end color.
| frequency | property |
public var frequency:intHow many particles are created on each ENTER_FRAME.
| holder | property |
public var holder:SpriteThe container Sprite for particles.
| random | property |
public var random:Number
How often particles are created on each ENTER_FRAME.
If 0.5 particles will only be created half the time. By default this is set to 1.
| refreshType | property |
refreshType:String [read-write]
The timing system currently in use.
This can be either :
public function get refreshType():String
public function set refreshType(value:String):void
See also
| running | property |
public var running:Boolean = falseDefines whether the Emitter is rendering.
| scale | property |
scale:Number [read-write]Gets the scale of the Emmitter.
Implementation public function get scale():Number
public function set scale(value:Number):void
| secondsPerFrame | property |
secondsPerFrame:Number [read-write]Implementation
public function get secondsPerFrame():Number
public function set secondsPerFrame(value:Number):void
| speed | property |
public var speed:NumberThe time in seconds it takes for a particle to get to its end position.
| startDistance | property |
public var startDistance:Number = 0The distance in pixels to start the particle Object at.
| target | property |
public var target:Object
Additional properties to tween during the particle's lifespan.
i.e. {scaleX:2, scaleY:2} would scale the DisplayObject by a factor of 2 over its lifespan.
| Emitter | () | constructor |
public function Emitter(Particle:Class, target:Object = null, frequency:int = 5, random:Number = 1, angle:Number = 0,360, distance:String = "20", speed:* = 1, blendMode:* = normal)Parameters
Particle:Class — The DisplayObject Class used to construct particles.
|
|
target:Object (default = null) — Additional properties to tween during the particle's lifespan.i.e. {scaleX:2, scaleY:2} would scale the DisplayObject by a factor of 2 over its lifespan. |
|
frequency:int (default = 5) — How many particles are created on each ENTER_FRAME.
|
|
random:Number (default = 1) — How often particles are created on each ENTER_FRAME.If 0.5 particles will only be created half the time. By default this is set to 1. |
|
angle:Number (default = 0,360) — The angle in degrees to allow the particles to move to:
|
|
distance:String (default = "20") — The distance to allow particles to move to:
|
|
speed:* (default = 1) — The time in seconds it takes for a particle to get to its end position.
|
|
blendMode:* (default = normal) — The BlendMode applied to the particle.
|
| addEvent | () | method |
protected function addEvent(item:EventDispatcher, type:String, liststener:Function, priority:int = 0, useWeakReference:Boolean = true):voidParameters
item:EventDispatcher |
|
type:String |
|
liststener:Function |
|
priority:int (default = 0) |
|
useWeakReference:Boolean (default = true) |
| clone | () | method |
| dispose | () | method |
public function dispose():voidDisposes the Emitter Class ready for garbage collection
| pause | () | method |
public function pause():voidPauses all playing particle tweens.
| removeEvent | () | method |
protected function removeEvent(item:EventDispatcher, type:String, listener:Function):voidParameters
item:EventDispatcher |
|
type:String |
|
listener:Function |
| resume | () | method |
public function resume():voidResumes all paused particle tweens.
| start | () | method |
public function start():voidStarts adding particle tweens on each ENTER_FRAME.
| stop | () | method |
public function stop():voidStops adding particle tweens on each ENTER_FRAME. Though doesnt stop current particle tweens.