Access keys

AQFade

Kind of class: class
Inherits from: none
Author: Arthur Clemens
Classpath: org.asapframework.util.actionqueue.AQFade
File last modified: Thursday, 12 October 2006, 11:10:22
ActionQueue method that controls the alpha blend of a movieclip.

See also AQPulse to fade a movieclip in a pulsating manner.

Summary

Class methods

Class methods

fade

static function fade (
inMC:MovieClip, inDuration:Number, inStartAlpha:Number, inEndAlpha:Number, inEffect:Function) : ActionQueuePerformData
Parameters:
inMC :
movieclip to fade
inDuration :
length of animation in seconds; 0 is used for perpetual animations - use -1 for instant change
inStartAlpha:
value to start fading from; if null then inMC's current _alpha value is used
inEndAlpha :
value to start fading to; if null then inMC's current _alpha value is used
inEffect :
(optional) An effect function, for instance one of the mx.transitions.easing methods. Arguments to pass the effect function may be appended as a comma-separated list.
Returns:
A new ActionQueuePerformData object.
Example:
This example fades in a movieclip from its current alpha to 100 in 2 seconds:
queue.addAction( AQFade.fade, my_mc, 2, null, 100, Regular.easeIn );