PDA

View Full Version : How to tween


flycast
03-17-2005, 12:37 PM
I have an animation that has 5 jpgs that scroll from one side of the stage to the other in a smooth fashion. When a JPG gets off the left end of the stage I then move it to the right end of the other JPG's and load a new JPG, this way it creates the illusion of continuious, random images. There is also advertising copy between the JPG's.

The way I am moving the JPG's using setInterval to update the x coordinate of each JPG with a loop. The problem is that it seems a little jerky. I am moving the images over 720 pixels in about 6-7 seconds.

Any suggestions on if there is a better way and how to smooth the animation out some?

kopo
03-17-2005, 01:35 PM
http://www.alex-uhlmann.de/flash/animationpackage

flycast
03-17-2005, 10:44 PM
Thanks for the link, I'll check it out...