360° Rotation Viewer

I wrote a little script, which iterates through an image-sequence on touch-drag movement.
It can be used to simulate 3D-Rotation of objects. Imagine a Spaceship Selection or Itembrowsing, whatever :wink:

There are two alternatives
1.) Load all pictures on top and show/hide them on touch-position or
2.) Load one picture and load/remove new picture on touch-position

Problems, Differences, Limits
Method 1 is fast but uses a tremendous amount of memory, especially retina therefore try to limit the length of the image sequence. For rotating objects every 12 degree per step seems to be fine.

Method 2 is memory-friendly but seems only to work on simulator, to slow on device (tested with first iPad)

Optional easeOut Animation
If the User makes a quick and short drag-distance, easeout the rotation.
On some corona versions, the simulator couldn’t handle the fast function calls and crashed. The newer daily builds seem to work though. Currently only working in one direction.

What do you think?
Is there any other way to be able to load new images faster? The newImage method is incredible slow on the ipad. Also the easeOut Animation is not smooth enough at the end… I haven’t figured it out yet, how to optimize that.

Here’s the source:Get it
Have fun with it
[import]uid: 12870 topic_id: 7537 reply_id: 307537[/import]