Packagecom.desuade.partigen.controllers
Classpublic dynamic class EmitterPhysicsController
InheritanceEmitterPhysicsController Inheritance PhysicsMultiController Inheritance MultiController Inheritance Object

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



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only] This returns true if any of the child controllers are active.
MultiController
 Inheritedduration : Number
Sets/gets the duration for all child controllers
MultiController
 Inheritedphysics : BasicPhysics
[read-only] The BasicPhysics object used to handle physics on a property.
PhysicsMultiController
 Inheritedproperty : String
This is the property of the target to apply the physics to.
PhysicsMultiController
 Inheritedtarget : Object
[override] The target for the physics to be applied to, since the internal controllers' target is the actual physics object.
PhysicsMultiController
Public Methods
 MethodDefined By
  
EmitterPhysicsController(target:Emitter, property:String, duration:Number, containerClass:Class = null, tweenClass:Class = null)
This creates an EmitterPhysicsController (which is basically a PhysicsMultiController).
EmitterPhysicsController
 Inherited
addController(property:String, containerClass:Class = null):MotionController
Creates a new child controller for the given property
MultiController
 Inherited
addKeyframes(position:Number, keyframes:Object, label:String = null):void
Adds a keyframe with the same label across all controllers at the same position.
MultiController
 Inherited
fromXML(xml:XML, usealldurations:Boolean = true):MultiController
Configures the MultiController and creates all child MotionControllers.
MultiController
 Inherited
setKeyframes(keyframe:String, properties:Object):void
This lets you configure a specific keyframe for each controller at once.
MultiController
 Inherited
start(keyframe:String = begin, startTime:Number = 0, rebuild:Boolean = false):*
[override] This starts all child MotionControllers at once.
PhysicsMultiController
 Inherited
stop():void
This stops all child MotionControllers at once
MultiController
 Inherited
toXML():XML
This creates an XML object representing the MultiController and it's child MotionControllers.
MultiController
Constructor Detail
EmitterPhysicsController()Constructor
public function EmitterPhysicsController(target:Emitter, property:String, duration:Number, containerClass:Class = null, tweenClass:Class = null)

This creates an EmitterPhysicsController (which is basically a PhysicsMultiController). Using the addPhysics() 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.