Packagecom.adobe.portfolio.animations
Classpublic class AnimateFactory
InheritanceAnimateFactory Inheritance Object

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

The AnimateFactory 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});
AnimateFactory
  
createParallel(animations:Array):Parallel
[static] Creates a parallel effect from an array of animations.
AnimateFactory
  
tweenTo(target:Object, duration:Number, property:String, value:*):void
[static] Creates and plays an animation of a property of a target object Sample usage: tweenTo(visualElement, 2000, {alpha:1});
AnimateFactory
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 — The property (of the target) 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 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

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 — The property (of the target) to animate.
 
value:* — The new value of the property. The animation will go from the current value of the property to the value specified by this parameter.