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:10:00 |
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 methods
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 );