Packageorg.flintparticles.threeD.away3d.initializers
Classpublic class ApplyMaterial
InheritanceApplyMaterial Inheritance InitializerBase

The ApplyMaterial initializer sets a material to apply to the Away3D object that is used when rendering the particle. To use this initializer, the particle's image object must be an Away3D Object3D.



Public Properties
 PropertyDefined by
  materialClass : Class
The class to use when creating the particles' material.
ApplyMaterial
  parameters : Array
The parameters to pass to the constructor for the material class.
ApplyMaterial
Public Methods
 MethodDefined by
  
ApplyMaterial(materialClass:Class, ... parameters)
The constructor creates an ApplyMaterial initializer for use by an emitter.
ApplyMaterial
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
InitializerBase
  
Returns -10 to ensure that the ApplyMaterial is applied after the ImageInit classes which define the image object.
ApplyMaterial
  
initialize(emitter:Emitter, particle:Particle):void
This method does nothing.
ApplyMaterial
 Inherited
This method does nothing.
InitializerBase
Property detail
materialClassproperty
materialClass:Class  [read-write]

The class to use when creating the particles' material.

Implementation
    public function get materialClass():Class
    public function set materialClass(value:Class):void
parametersproperty 
parameters:Array  [read-write]

The parameters to pass to the constructor for the material class.

Implementation
    public function get parameters():Array
    public function set parameters(value:Array):void
Constructor detail
ApplyMaterial()constructor
public function ApplyMaterial(materialClass:Class, ... parameters)

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

Parameters
materialClass:Class — The class to use when creating the particles' material.
 
... parameters — The parameters to pass to the constructor for the material class.

See also

Method detail
getDefaultPriority()method
public override function getDefaultPriority():Number

Returns -10 to ensure that the ApplyMaterial is applied after the ImageInit classes which define the image object.

Returns
Number
initialize()method 
public override 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