AQAddMove

Kind of class:class
Inherits from:none
Author:Arthur Clemens
Classpath:org.asapframework.util.actionqueue.AQAddMove
File last modified:Thursday, 12 October 2006, 11:19:40
ActionQueue method that controls the relative position of a movieclip.
Lets a movieclip or button move a specified number of pixels added to its current location, without specifying its end location.

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 = 1
(read)

End animation value to be returned to the perform function.

START_VALUE

static private START_VALUE:Number = 0
(read)

Start animation value to be returned to the perform function.

Class methods

addMove

static function addMove (
inMC:MovieClip, inDuration:Number, inAddX:Number, inAddY:Number, inEffect:Function) : ActionQueuePerformData

Parameters:
inMC :
movieclip or button to move
inDuration:
length of animation in seconds; 0 is used for perpetual animations - use -1 for instant change
inAddX :
the horizontal distance in pixels to move the clip
inAddY :
the vertical distance in pixels to move the clip
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:
  • The return value of AQWorker.returnValue.
Implementation note:
  • This method calls AQWorker's returnValue.
Example:
  • This example lets a movieclip travel (-40, 15) pixels over a timeframe of 2 seconds, with an ease in effect.
    queue.addAction( AQAddMove.addMove, my_mc, 2, -40, 15, Regular.easeIn );