Packagecom.desuade.partigen.renderers
Classpublic class StandardRenderer
InheritanceStandardRenderer Inheritance Renderer Inheritance flash.events.EventDispatcher
Subclasses BitmapRenderer

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

This uses the standard DisplayList to display particles.



Public Properties
 PropertyDefined By
  order : String
The visual stacking order for new particles to be created – 'top', 'bottom', or 'random'.
StandardRenderer
  target : DisplayObjectContainer
A visible DisplayObject that will "hold" the particles on the screen.
StandardRenderer
Public Methods
 MethodDefined By
  
StandardRenderer(target:DisplayObjectContainer, order:String = top)
Creates a new StandardRenderer.
StandardRenderer
  
[override] This adds a particle to the display.
StandardRenderer
  
This removes all current particles from the renderer.
StandardRenderer
  
[override] This removes a particle from the display.
StandardRenderer
Property Detail
orderproperty
public var order:String

The visual stacking order for new particles to be created – 'top', 'bottom', or 'random'.

targetproperty 
public var target:DisplayObjectContainer

A visible DisplayObject that will "hold" the particles on the screen.

Constructor Detail
StandardRenderer()Constructor
public function StandardRenderer(target:DisplayObjectContainer, order:String = top)

Creates a new StandardRenderer. This will use a DisplayObject and the standard Flash way to show particles on screen. Particles will be created "inside" the object via addChild().

Parameters
target:DisplayObjectContainer — The target parent DisplayObject to create child particles in.
 
order:String (default = top) — The visual stacking order for new particles to be created – 'top', 'bottom', or 'random'.
Method Detail
addParticle()method
override public function addParticle(p:IBasicParticle):void

This adds a particle to the display.

Parameters

p:IBasicParticle — The particle to add.

removeAllParticles()method 
public function removeAllParticles():void

This removes all current particles from the renderer. Note: all the particle still exist and run in memory, unless you remove them in their pool as well.

removeParticle()method 
override public function removeParticle(p:IBasicParticle):void

This removes a particle from the display.

Parameters

p:IBasicParticle — The particle to remove.