AQFade

Kind of class: public class
Package:
Inherits from:
  • none
Classpath: org.asaplibrary.util.actionqueue.AQFade
File last modified: Wednesday, 11 May 2011, 18:52:04
Action method to control the timed fading of a DisplayObject.

Summary

Instance methods
  • fade (inDO:DisplayObject, inDuration:Number, inStartAlpha:Number, inEndAlpha:Number, inEffect:Function = null) : Function

Instance methods

fade

function fade(inDO:DisplayObject, inDuration:Number, inStartAlpha:Number, inEndAlpha:Number, inEffect:Function = null) : Function
Parameters
inDO :DisplayObject to fade
inDuration :length of change in seconds; 0 is used for perpetual animations - use -1 for instant change
inStartAlpha:value to start fading from; if NaN then inDO's current alpha value is used
inEndAlpha :value to start fading to; if NaN then inDO's current alpha value is used
inEffect :(optional) an effect function, for instance one of the fl.transitions.easing methods
Returns