Package | com.gskinner.motion |
Class | public class MultiTween |
Property | Defined by | ||
---|---|---|---|
position : Number
The property that is tweened by the GTween instance.
| MultiTween | ||
tween : GTween
[read-only]
Read-only access to the tween that is associated with this MultiTween instance.
| MultiTween |
Method | Defined by | ||
---|---|---|---|
MultiTween(targets:Array, properties:Object, tween:GTween)
Constructs a new MultiTween instance.
| MultiTween |
position | property |
position:Number
[read-write]The property that is tweened by the GTween instance. This can also be set directly through code. For example, a position of 0.5 will tween all the target properties to halfway between their initial value and their destination value.
Implementation public function get position():Number
public function set position(value:Number):void
tween | property |
tween:GTween
[read-only]Read-only access to the tween that is associated with this MultiTween instance.
Implementation public function get tween():GTween
MultiTween | () | constructor |
public function MultiTween(targets:Array, properties:Object, tween:GTween)
Constructs a new MultiTween instance.
Parameterstargets:Array — An array of target objects whose properties will be tweened.
|
|
properties:Object — Either an object describing the destination values for the tween that will be applied to all targets, or an array of those objects to apply to each of the targets independently.
|
|
tween:GTween — The GTween instance that will be controlling this MultiTween. This allows the MultiTween to set itself as the target of the tween, set up its position property for tweening, and listen for the init event.
|