AQScale

Kind of class: public class
Package:
Inherits from:
  • none
Classpath: org.asaplibrary.util.actionqueue.AQScale
File last modified: Wednesday, 11 May 2011, 18:54:19
Action method to control the timed scaling of a DisplayObject.
Example
  • const CURRENT:Number = Number.NaN;
    queue.addAction(new AQScale().scale(my_mc, 3, CURRENT, CURRENT, 4, 4));
    

Summary

Instance methods
  • scale (inDO:DisplayObject, inDuration:Number, inStartScaleX:Number, inStartScaleY:Number, inEndScaleX:Number, inEndScaleY:Number, inEffect:Function = null) : Function

Instance methods

scale

function scale(inDO:DisplayObject, inDuration:Number, inStartScaleX:Number, inStartScaleY:Number, inEndScaleX:Number, inEndScaleY:Number, inEffect:Function = null) : Function
Parameters
inDO :DisplayObject to scale
inDuration :length of change in seconds; 0 is used for perpetual animations - use -1 for instant change
inStartScaleX:x value to start scaling from; if NaN then inDO's current scaleX value is used
inStartScaleY:y value to start scaling from; if NaN then inDO's current scaleY value is used
inEndScaleX :x value to end scaling to; if NaN then inDO's current (dynamic) scaleX value is used
inEndScaleY :y value to end scaling to; if NaN then inDO's current (dynamic) scaleY value is used
inEffect :(optional) an effect function, for instance one of the fl.transitions.easing methods
Returns