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

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.

This initializer has a priority of -10 to ensure that it is applied after the ImageInit classes which define the image object.



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
 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
  
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
  
initialize(emitter:Emitter, particle:Particle):void
[override] This method does nothing.
ApplyMaterial
 Inherited
This method does nothing.
InitializerBase
Property Detail
materialClassproperty
materialClass:Class

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

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
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