Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Posts: 49
Registered: ‎11-18-2010
My Device: Flash Builder - PlayBook Simulator

An Image subclass that handle animated GIFs

Hey there!

I just wanted to share a class that might be useful to anyone out there: HybridImage. It both handles JPGs, static GIFs, PNGs and everything that Image already handles but it adds support for animated GIFs, thanks to Thibault Imbert's GIFPlayer.


Get the source here: http://code.google.com/p/as3-bits/source/browse/trunk/bits/src/net/tw/qnx/ui/HybridImage.as


Tell me what you think and report bugs if you find any!

Warning, it might freeze your app for a second if the GIF loaded is a big one. This is a GIFPlayer limitation.