Packageorg.flintparticles.threeD.actions
Classpublic class TweenToZone
InheritanceTweenToZone Inheritance ActionBase Inheritance Object

The TweenToZone action adjusts the particle's position between two locations as it ages. The start location is wherever the particle starts from, depending on the emitter and the initializers. The end position is a random point within the specified zone. The current position is relative to the particle's energy, which changes as the particle ages in accordance with the energy easing function used. This action should be used in conjunction with the Age action.

Default MXML Propertyzone



Public Properties
 PropertyDefined By
 Inheritedpriority : int
Returns a default priority of 0 for this action.
ActionBase
  zone : Zone3D
The zone for the particle's position when its energy is 0.
TweenToZone
Protected Properties
 PropertyDefined By
 Inherited_priority : int = 0
ActionBase
Public Methods
 MethodDefined By
  
TweenToZone(zone:Zone3D = null)
The constructor creates a TweenToZone action for use by an emitter.
TweenToZone
 Inherited
addedToEmitter(emitter:Emitter):void
This method does nothing.
ActionBase
 Inherited
This method does nothing.
ActionBase
  
update(emitter:Emitter, particle:Particle, time:Number):void
[override] This method does nothing.
TweenToZone
Property Detail
zoneproperty
zone:Zone3D

The zone for the particle's position when its energy is 0.


Implementation
    public function get zone():Zone3D
    public function set zone(value:Zone3D):void
Constructor Detail
TweenToZone()Constructor
public function TweenToZone(zone:Zone3D = null)

The constructor creates a TweenToZone action for use by an emitter. To add a TweenToZone to all particles created by an emitter, use the emitter's addAction method.

Parameters
zone:Zone3D (default = null) — The zone for the particle's position when its energy is 0.

See also

Method Detail
update()method
override public function update(emitter:Emitter, particle:Particle, time:Number):void

This method does nothing. All derived classes override this method to update each particle every frame.

Parameters

emitter:Emitter — The Emitter that created the particle.
 
particle:Particle — The particle to be updated.
 
time:Number — The duration of the frame - used for time based updates.