Packagecom.adobe.portfolio.effects
Classpublic class TweenFactory
InheritanceTweenFactory Inheritance Object

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

The TweenFactory class is a utility class for easily creating Animate objects.



Public Methods
 MethodDefined By
  
createAnimate(target:Object, duration:Number, property:String, value:*):Animate
[static] Creates an Animate object that animates a property of a target object Sample usage: createAnimate(visualElement, 2000, {alpha:1});
TweenFactory
  
createParallel(animations:Array):Parallel
[static] Creates a parallel effect from an array of animations.
TweenFactory
  
tweenTo(target:Object, duration:Number, property:String, value:*):void
[static] tweenTo creates and plays an animation of a property of a target object Sample usage: tweenTo(visualElement, 2000, {alpha:1});
TweenFactory
Method Detail
createAnimate()method
public static function createAnimate(target:Object, duration:Number, property:String, value:*):Animate

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Creates an Animate object that animates a property of a target object

Sample usage: createAnimate(visualElement, 2000, {alpha:1});

Parameters

target:Object — The target object
 
duration:Number — The time duration of the animation effect in milliseconds
 
property:String — a object containing the property to animate
 
value:* — The new value of the property object. The animation will go from the current value of the object property to the value specified in this parameter

Returns
Animate — an Animate object that can then be played
createParallel()method 
public static function createParallel(animations:Array):Parallel

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

Creates a parallel effect from an array of animations. The set or animations in the array will be played at the same time.

Parameters

animations:Array — An array of Animate objects that are to be played at the same time

Returns
Parallel — A parallel effect object that plays its child effects at the same time.
tweenTo()method 
public static function tweenTo(target:Object, duration:Number, property:String, value:*):void

Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0

tweenTo creates and plays an animation of a property of a target object

Sample usage: tweenTo(visualElement, 2000, {alpha:1});

Parameters

target:Object — The target object
 
duration:Number — The time duration of the animation effect in milliseconds
 
property:String — a object containing the property to animate
 
value:* — The new value of the property object. The animation will go from the current value of the object property to the value specified in this parameter