I'm trying to figure out the best way to do an animated png. Say I have a set of .png's named circle_00.png to circle_30.png and I want to animate them. I can do an animation that for every step loads the next circle and sets the image to that.
However, since we know ahead of time, if you want circle_00.png you want all of them. So that says to me ClientBundle with all the images. However, those require a function for every frame. And you can't use iteration to go through each. What's the best way to do this? Just do each frame as an url? Example: for(Integer Frame: frames) image.gotoFrame(frame) where animate loads from the server "circle"+frame".png" Or a FAR more verbose if(frame==1) return new Image(Resource.frame1()); else if (frame==2) [...] I see pro's and cons' of both and feel like I'm missing an easy answer. This image will be animated on a click, and if I want to be slick I will reverse the animation (30->0) on another click. Any suggestions? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.