Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps

2010-09-12 Thread gamera

make a benchmark and find out.

On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote:

What is the fastest way to animate a series of bitmaps (say 20  
frames).


Here's a couple of ideas:

A single big image behind a frame sized mask, move it one frame  
onEnterFrame.


A series of memory cached Bitmap objs, swap them using addChild/ 
removeChild (or set visible?) onEnterFrame.


A series of memory cached BitmapData objs swap them by resetting  
bmp.bitmapData onEnterFrame.


Anything faster is nice too - particularly on mobile.

Thanks!

Kevin N.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps

2010-09-12 Thread Karim Beyrouti
found this method quite interesting: 
http://insideria.com/2010/08/advanced-blitting-bitmap-scrol.html
not too sure it applies to mobile, but might help...

On 12 Sep 2010, at 20:58, gamera wrote:

 make a benchmark and find out.
 
 On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote:
 
 What is the fastest way to animate a series of bitmaps (say 20 frames).
 
 Here's a couple of ideas:
 
 A single big image behind a frame sized mask, move it one frame onEnterFrame.
 
 A series of memory cached Bitmap objs, swap them using addChild/removeChild 
 (or set visible?) onEnterFrame.
 
 A series of memory cached BitmapData objs swap them by resetting 
 bmp.bitmapData onEnterFrame.
 
 Anything faster is nice too - particularly on mobile.
 
 Thanks!
 
 Kevin N.
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Best (fastest/memory efficient) way to animate bitmaps

2010-09-12 Thread Karl DeSaulniers

Martijndevisser - ImageLoader.as

With this you can load the images as they scroll. if you will. :)
Very smooth and memory efficient that I have seen.

Best,
Karl

On Sep 12, 2010, at 4:04 PM, Karim Beyrouti wrote:

found this method quite interesting: http://insideria.com/2010/08/ 
advanced-blitting-bitmap-scrol.html

not too sure it applies to mobile, but might help...

On 12 Sep 2010, at 20:58, gamera wrote:


make a benchmark and find out.

On Sep 8, 2010, at 8:50 PM, Kevin Newman wrote:

What is the fastest way to animate a series of bitmaps (say 20  
frames).


Here's a couple of ideas:

A single big image behind a frame sized mask, move it one frame  
onEnterFrame.


A series of memory cached Bitmap objs, swap them using addChild/ 
removeChild (or set visible?) onEnterFrame.


A series of memory cached BitmapData objs swap them by resetting  
bmp.bitmapData onEnterFrame.


Anything faster is nice too - particularly on mobile.

Thanks!

Kevin N.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders