AQMove
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Author: | Arthur Clemens |
| Classpath: | org.asapframework.util.actionqueue.AQMove |
| File last modified: | Thursday, 12 October 2006, 11:10:29 |
ActionQueue method to control the position of a movieclip over time.
Summary
Class methods
Class methods
move
static function move (
inMC:MovieClip,
inDuration:Number,
inStartX:Number,
inStartY:Number,
inEndX:Number,
inEndY:Number,
inEffect:Function) : ActionQueuePerformData
Parameters:
inMC :
movieclip to move
inDuration:
length of animation in seconds; 0 is used for perpetual animations - use -1 for instant change
inStartX :
x value to start moving from; if null then inMC's current _x value is used
inStartY :
y value to start moving from; if null then inMC's current _y value is used
inEndX :
x value to start moving to; if null then inMC's current (dynamic) _x value is used
inEndY :
y value to start moving to; if null then inMC's current (dynamic) _y value is used
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:
A new ActionQueuePerformData object.
Example:
The movieclip in this example will move a movieclip in 4 seconds from its current position to position (100,200) with an easing effect:
queue.addAction( AQMove.move, my_mc, 4, null, null, 100, 200, Regular.easeInOut );