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:19:40
ActionQueue method that controls the alpha blend of a movieclip.
See also AQPulse to fade a movieclip in a pulsating manner.

Summary


Class properties
  • START_VALUE : Number
    • Start animation value to be returned to the perform function.
  • END_VALUE : Number
    • End animation value to be returned to the perform function.
Class methods

Class properties

END_VALUE

static private END_VALUE:Number = 0
(read)

End animation value to be returned to the perform function.

START_VALUE

static private START_VALUE:Number = 1
(read)

Start animation value to be returned to the perform function.

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 );