Packagecom.desuade.partigen.controllers
Classpublic class EmitterTweenController
InheritanceEmitterTweenController Inheritance MotionController Inheritance flash.events.EventDispatcher

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

This is a controller for the emitter that inherits a MotionController.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only] If the controller is currently running.
MotionController
 InheritedcolorTweenClass : Class
[static] The default colortween class to use for emitter controllers
MotionController
 Inheritedduration : Number
The duration of the entire sequence to last for in seconds.
MotionController
 Inheritedkeyframes : KeyframeContainer
This is what's used to store and manage keyframes.
MotionController
 Inheritedproperty : String
The property that's being controlled and tweened.
MotionController
 Inheritedsequence : Sequence
[read-only] The internal sequence created from the keyframes.
MotionController
 Inheritedtarget : Object
The target object that will have it's property controlled.
MotionController
 InheritedtweenClass : Class
[static] The default tween class to use for emitter controllers
MotionController
Public Methods
 MethodDefined By
  
EmitterTweenController(target:Emitter, property:String, duration:Number, containerClass:Class = null, tweenClass:Class = null)
This creates an EmitterTweenController (which is basically a MotionController).
EmitterTweenController
 Inherited
buildSequence(target:Object, property:String, duration:Number):ClassSequence
This creates the actual sequence object used to go through each tween.
MotionController
 Inherited
fromXML(xml:XML, useproperty:Boolean = true, useduration:Boolean = true):MotionController
Configures the MotionController from the XML object and sets the keyframes to the child KeyframeContainer XML and it's child Keyframes.
MotionController
 Inherited
rebuild():void
This rebuilds the internal sequence.
MotionController
 Inherited
setSingleTween(begin:*, beginSpread:* = 0, end:* = 0, endSpread:* = 0, ease:* = null, extras:Object = null):MotionController
This easily sets the 'begin' and 'end' keyframes of the controller to create a standard "one-shot" tween.
MotionController
 Inherited
setStartValue(keyframe:String = begin):void
This sets the initial start value of the target.
MotionController
 Inherited
start(keyframe:String = begin, startTime:Number = 0, rebuild:Boolean = false):*
Starts the controller.
MotionController
 Inherited
stop():void
This stops the controller, and all internal tweens associated to it.
MotionController
 Inherited
toXML():XML
Create an XML object that contains the MotionController config, KeyframeContainer, and all child Keyframes.
MotionController
Constructor Detail
EmitterTweenController()Constructor
public function EmitterTweenController(target:Emitter, property:String, duration:Number, containerClass:Class = null, tweenClass:Class = null)

This creates an EmitterTweenController (which is basically a MotionController). Using the addTween() method is recommended over calling this directly.

Parameters
target:Emitter — The emitter to tween
 
property:String — The property to control
 
duration:Number — The entire duration for the controller. Since the emitter always exists, there must be a set duration.
 
containerClass:Class (default = null) — The class to use for Keyframes. Null will use the default.
 
tweenClass:Class (default = null) — The class to use for tweening on the controller. Null will use the default.