Packagecom.desuade.partigen.emitters
Classpublic dynamic class IDEEmitter
InheritanceIDEEmitter Inheritance Emitter Inheritance BasicEmitter Inheritance flash.display.Sprite

Language Version : ActionScript 3
Since : 20.08.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

This is the class used for Partigen Emitter components for the Flash IDE.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only] This is true if the emitter is currently emitting.
BasicEmitter
 Inheritedangle : int = 0
This is the angle used by ParticlePhysicsControllers on new particles.
Emitter
 InheritedangleSpread : * = 0
This is the spread for the angle, to create a random range for ParticlePhysicsControllers.
Emitter
  autoStart : Boolean
Start the emitter automatically.
IDEEmitter
 Inheritedburst : int = 1
This is the amount of particles to be created on each emission.
BasicEmitter
 InheritedcacheParticleAsBitmap : Boolean = false
This will set "cacheAsBitmap = true" on all created particles. Test using this vs groupBitmap - as performance will vary based on each effect. Also test this with BitmapRenderer, as it may vary the effect and performance.
BasicEmitter
  config : String
Getter/setter that uses XML methods to return (as String) or set the configuration of the emitter from String/XML.
IDEEmitter
 Inheritedcontrollers : Object
This object holds the EmitterController and the ParticleController. They are accessible as follows: controllers.emitter and controllers.particle These controllers are what is used to configure particles and the way the behave, as well as properties for the emitter itself.
Emitter
 InheritedenableEvents : Boolean = false
Enable particle BORN and DIED events.
BasicEmitter
 Inheritedeps : Number
This stands for "emissions per second".
BasicEmitter
  followMouse : Boolean
If the emitter follows the mouse.
IDEEmitter
 InheritedforceVariety : Boolean = false
This forces pooled particles to rebuild their groups and controllers to eliminate any possible repetition or error at the cost of performance. Set this to true if you plan on making changes to the emitter while it's running.
BasicEmitter
 InheritedgroupAmount : int = 1
This controls how may particles are made in a "particle group".
BasicEmitter
 InheritedgroupBitmap : Boolean = false
This will create a new Bitmap object for the particle instead of the direct display object.
BasicEmitter
 InheritedgroupProximity : int = 0
This determines the maximum distance away from the center of the group to create new particles.
BasicEmitter
 Inheritedid : int
[read-only] The unique id of the emitter.
BasicEmitter
 Inheritedlife : Number = 1
This is the duration in seconds a particle will exist for. If the value is 0, the particle will live forever.
BasicEmitter
 InheritedlifeSpread : * = 0
This is the spread for particle lives.
BasicEmitter
 Inheritedparticle : Class
This is the class used to create new particles from.
BasicEmitter
 InheritedparticleBaseClass : Class
This is the base class to used for all created particles. When the pools create particle objects, they use this.
BasicEmitter
 InheritedparticleBlendMode : String = normal
This defines the blendmode for each particle created. Choices: "add", "alpha", "darken", "difference", "erase", "hardlight", "invert", "layer", "lighten", "multiply", "normal", "overlay", "screen", "subtract" Note: PixelRenderer will assume the blendmode of all particles/pixels is the same.
BasicEmitter
 InheritedparticleFilters : Array
This is an array of filters that gets applied to each particle as it's born.
BasicEmitter
 Inheritedpool : Pool
This is the Pool to use to store and manage the actual particle objects.
BasicEmitter
  prefetchTime : Number = 0
This is the prefetch time used when automatically starting the emitter.
IDEEmitter
 Inheritedrenderer : Renderer
The Renderer to use for created particles.
BasicEmitter
  showIndicator : Boolean
If the emitter indicator should be shown, marking it's position on the stage.
IDEEmitter
Public Methods
 MethodDefined By
  
Creates a new IDEEmitter (usually from a component)
IDEEmitter
 Inherited
createParticleBitmap(padding:int = 0):void
This creates the main bitmapdata object used when groupBitmap == true.
BasicEmitter
 Inherited
emit(burst:int = 1):void
This method creates new particles each time it's called.
BasicEmitter
 Inherited
fromXML(xml:XML, reset:Boolean = true, renderer:Boolean = false):*
[override] This configures the emitter based on the XML, and adds any controllers (if available)
Emitter
 Inherited
getPrefetchLifeArray(time:Number):Array
This creates an array of particle's life values, both original and current, based on the eps/burst and supplied time value as it would if the emitter was running for the time duration.
BasicEmitter
 Inherited
This kills all currently existing particles in the pool created by this emitter
BasicEmitter
 Inherited
prefetch(time:Number):void
This prefetches (and creates) the particles that would have existed if the emitter was running for the given time.
BasicEmitter
 Inherited
reset():void
[override] This resets the emitter to the defaults and purges the pool
Emitter
 Inherited
start(time:Number = 0, startcontrollers:Boolean = true):void
[override] Starts the emitter.
Emitter
 Inherited
stop(stopcontrollers:Boolean = true, purge:Boolean = true):void
[override] This stops the emitter.
Emitter
 Inherited
toXML():XML
[override] This generates an XML object representing the entire emitter
Emitter
Protected Methods
 MethodDefined By
 Inherited
createParticle(totalLife:Number = 0, remainingLife:Number = 0):IBasicParticle
[override]
Emitter
Property Detail
autoStartproperty
autoStart:Boolean

Start the emitter automatically.


Implementation
    public function get autoStart():Boolean
    public function set autoStart(value:Boolean):void
configproperty 
config:String

Getter/setter that uses XML methods to return (as String) or set the configuration of the emitter from String/XML.


Implementation
    public function get config():String
    public function set config(value:String):void
followMouseproperty 
followMouse:Boolean

If the emitter follows the mouse.


Implementation
    public function get followMouse():Boolean
    public function set followMouse(value:Boolean):void
prefetchTimeproperty 
public var prefetchTime:Number = 0

This is the prefetch time used when automatically starting the emitter.

showIndicatorproperty 
showIndicator:Boolean

If the emitter indicator should be shown, marking it's position on the stage.


Implementation
    public function get showIndicator():Boolean
    public function set showIndicator(value:Boolean):void
Constructor Detail
IDEEmitter()Constructor
public function IDEEmitter()

Creates a new IDEEmitter (usually from a component)