|
-
Actionscript
I am trying to move a movie 222 pixels in each direction ... I am using the code below on each button.
on(release) {
var t:Number = img1_mc._x;
new mx.transitions.Tween(img1_mc, "_x", mx.transitions.easing. Elastic.easeOut, t, -222, 8, true);
}
One is negative and the other positive. Once I click on it, it moves 222 pixels and will not move again. Any thoughts ? I would also like to quicken up the transition a little ... are there other options beside elastic ?
Cheers, Mark
-
Hi I think you should go read about the Tween Class in the liveDocs (link in m footer)
For example here's the page on the easing methods:
http://help.adobe.com/en_US/AS2LCR/F...48.html#151549
There is also Caurina Tweener, amomgst other lighter tweening engines, that works well and offer different options:
http://hosted.zeh.com.br/tweener/docs/en-us/
gparis
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|