AQMove

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

Summary

Instance methods
  • move (inDO:DisplayObject, inDuration:Number, inStartX:Number, inStartY:Number, inEndX:Number, inEndY:Number, inEffect:Function = null) : Function

Instance methods

move

function move(inDO:DisplayObject, inDuration:Number, inStartX:Number, inStartY:Number, inEndX:Number, inEndY:Number, inEffect:Function = null) : Function
Parameters
inDO :DisplayObject to move
inDuration:length of change in seconds; 0 is used for perpetual animations - use -1 for instant change
inStartX :x value to start moving from; if NaN then inDO's current x value is used
inStartY :y value to start moving from; if NaN then inDO's current y value is used
inEndX :x value to start moving to; if NaN then inDO's current (dynamic) x value is used
inEndY :y value to start moving to; if NaN then inDO's current (dynamic) y value is used
inEffect :(optional) an effect function, for instance one of the fl.transitions.easing methods