I'd use MovieClip. First you need to export all images as separate files, then if you want you can use texture packer to pack them, or define animation manually from multiple files. and you can do animation by yourself as in Gideros TexturePack example or use MovieClip.
Here's an example using the same animation (project with images attached)
-- MovieClip animation - evslocal imageWidth, imageHeight =300, 400local frames ={}-- table for the frames-- set up MovieClip table from pngs 01 to 34for i =1, 34do
frames[i]={i, i, Bitmap.new(Texture.new(string.format("%02d.png", i)))}endlocal clip = MovieClip.new(frames)-- create clip and start
clip:setGotoAction(34, 1)-- set clip to loop back to start (1) at end (34)
clip:setPosition(application:getDeviceWidth()/2 - imageWidth /2 ,
application:getDeviceHeight()/2 - imageHeight /2)-- center
stage:addChild(clip)-- show it
Alternatively wait until the render to texture feature is completed (thanks again @Atilim your a star! ) and you have a movie playback function that actually decrypted an animated gif on the fly.
Alternatively you could implement your own movie player as a native plugin.
WhiteTree Games - Home, home on the web, where the bits and bytes they do play! #MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill
Comments
First you need to export all images as separate files, then if you want you can use texture packer to pack them, or define animation manually from multiple files. and you can do animation by yourself as in Gideros TexturePack example or use MovieClip.
Here's an example using the same animation (project with images attached)
Alternatively you could implement your own movie player as a native plugin.
#MakeABetterGame! "Never give up, Never NEVER give up!" - Winston Churchill