Packagecom.desuade.partigen.particles
Classpublic dynamic class BasicPixelParticle
InheritanceBasicPixelParticle Inheritance Object
Implements IBasicParticle
Subclasses PixelParticle

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

A basic, high-performance BasicParticle for use with the PixelRenderer.



Public Properties
 PropertyDefined By
  alpha : Number = 1
This is the alpha value of the pixel.
BasicPixelParticle
  blendMode : String = normal
The blendmode of the pixel.
BasicPixelParticle
  color : uint = 0xffffffff
This is the pixel color.
BasicPixelParticle
  emitter : BasicEmitter
[read-only] The parent emitter that emitted this particle.
BasicPixelParticle
  filters : Array
BasicPixelParticle
  group : Array
This holds the particles inside of the group.
BasicPixelParticle
  id : int
[read-only] The unique id of the particle.
BasicPixelParticle
  isbuilt : Boolean = false
This is used by the emitter and pools to determine if the controllers, groups, bitmaps, etc have already been built.
BasicPixelParticle
  isclean : Boolean = true
This is used by the emitter and pools to determine if/how the particle has been used before in memory.
BasicPixelParticle
  life : Number
The life of the particle: how long the particle will live for.
BasicPixelParticle
  x : int = 0
The x value of the pixel.
BasicPixelParticle
  y : int = 0
The y value of the pixel.
BasicPixelParticle
Public Methods
 MethodDefined By
  
Creates a new pixel particle for the PixelRenderer.
BasicPixelParticle
  
kill(... args):void
This instantly kills the particle and dispatches a "DIED" event.
BasicPixelParticle
Property Detail
alphaproperty
public var alpha:Number = 1

This is the alpha value of the pixel.

blendModeproperty 
public var blendMode:String = normal

The blendmode of the pixel. Note: the PixelRenderer will only apply the same blendmode to all pixels/particles.

colorproperty 
public var color:uint = 0xffffffff

This is the pixel color.

emitterproperty 
emitter:BasicEmitter  [read-only]

The parent emitter that emitted this particle.


Implementation
    public function get emitter():BasicEmitter
filtersproperty 
filters:Array


Implementation
    public function get filters():Array
    public function set filters(value:Array):void
groupproperty 
public var group:Array

This holds the particles inside of the group.

idproperty 
id:int  [read-only]

The unique id of the particle.


Implementation
    public function get id():int
isbuiltproperty 
public var isbuilt:Boolean = false

This is used by the emitter and pools to determine if the controllers, groups, bitmaps, etc have already been built.

iscleanproperty 
public var isclean:Boolean = true

This is used by the emitter and pools to determine if/how the particle has been used before in memory.

lifeproperty 
public var life:Number

The life of the particle: how long the particle will live for. This also effects the duration of controller tweens.

xproperty 
public var x:int = 0

The x value of the pixel.

yproperty 
public var y:int = 0

The y value of the pixel.

Constructor Detail
BasicPixelParticle()Constructor
public function BasicPixelParticle()

Creates a new pixel particle for the PixelRenderer. This should normally not be called; use emitter.emit() instead of this.

See also

Method Detail
kill()method
public function kill(... args):void

This instantly kills the particle and dispatches a "DIED" event.

Parameters

... args