user15899
user15899

Reputation: 315

What's the best way to display a small embedded animated image with Flex?

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.

Upvotes: 1

Views: 1734

Answers (3)

Chetan S
Chetan S

Reputation: 23813

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

Upvotes: 0

defmeta
defmeta

Reputation: 1322

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

Upvotes: 0

Chetan S
Chetan S

Reputation: 23813

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.

Upvotes: 1

Related Questions