[Tweener] relative x and y movement

Zeh Fernando zehfernando at zeh.com.br
Tue May 27 05:54:01 PDT 2008


> Working with the latest AS 3 version from the SVN.
> Under the last SVN version and the current,  I am having problem moving 
> a movie clip + or - relative to its current position on the x and y axis.
> x:+30  moves the MC to X-30 on the stage. I am trying to get the MC to 
> move 30 pixels on X axis from its current position.
> is there an issue with that? Maybe it is an AS3 thing I am missing. I 
> know i have experimented with it.

It uses absolute values. To use relative values do..

Tweener.addTween(mymc, {x:mymc.x+30, ...});



Zeh


More information about the Tweener mailing list