Packageorg.flintparticles.threeD.papervision3d.initializers
Classpublic class PV3DObjectClasses
InheritancePV3DObjectClasses Inheritance InitializerBase Inheritance Object

The ImageClasses Initializer sets the DisplayObject to use to draw the particle. It selects one of multiple images that are passed to it. It is used with the DisplayObjectRenderer. When using the BitmapRenderer it is more efficient to use the SharedImage Initializer.



Public Properties
 PropertyDefined By
 Inheritedpriority : int
Returns a default priority of 0 for this action.
InitializerBase
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
InitializerBase
Public Methods
 MethodDefined By
  
PV3DObjectClasses(images:Array, weights:Array = null)
The constructor creates a ImageClasses initializer for use by an emitter.
PV3DObjectClasses
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
InitializerBase
  
addImage(image:*, weight:Number = 1):void
PV3DObjectClasses
  
initialize(emitter:Emitter, particle:Particle):void
[override] This method does nothing.
PV3DObjectClasses
 Inherited
This method does nothing.
InitializerBase
  
removeImage(image:*):void
PV3DObjectClasses
Constructor Detail
PV3DObjectClasses()Constructor
public function PV3DObjectClasses(images:Array, weights:Array = null)

The constructor creates a ImageClasses initializer for use by an emitter. To add a ImageClasses to all particles created by an emitter, use the emitter's addInitializer method.

Parameters
images:Array — An array containing the classes to use for each particle created by the emitter.
 
weights:Array (default = null) — The weighting to apply to each displayObject. If no weighting values are passed, the images are used with equal probability.

See also

Method Detail
addImage()method
public function addImage(image:*, weight:Number = 1):void

Parameters

image:*
 
weight:Number (default = 1)

initialize()method 
override public function initialize(emitter:Emitter, particle:Particle):void

This method does nothing. All derived classes override this method to initialize each particle created by the emitter.

Parameters

emitter:Emitter
 
particle:Particle

removeImage()method 
public function removeImage(image:*):void

Parameters

image:*