views:

928

answers:

5

I need to display a small (15x15 pixel) animation in a Flex app. I have it FLV format, but it could be converted to somthing else. I'd prefer to have the file embedded in the app (it's only 8k in size). I've seen posts about displaying animated GIFs using third-party code which would be OK, but is there a way to do this with the native Flex libs. I also realize that FLVs can be displayed in Video objects but only if they are external files.

Thanks!

+1  A: 

It is a lot easier converting it into a SWF and displaying it in an Image control. SWFTools can convert animated GIF into SWF file, small enough to be embedded in your app.

Chetan Sastry
A: 

Or alternatively you could convert it into a good old animated GIF file and use this package to embed and play it back:

http://www.bytearray.org/?p=95

defmeta
A: 

Thanks for the suggestion!

I converted the FLV to SWF using Eltima's SWF Toolbox. The problem now is that at the end of each loop of the animation it goes blank for a split second.

A: 

I guess you have a blank frame in SWF either in the beginning or the end.

Chetan Sastry
A: 

Is there anyway to edit the SWF to remove the blank frame? I have Flex Builder, are there any other tools I'd need to do that?

Thanks a lot for the help.