Animated GIFs in Haxe/NME

Hi, I tried to get an animated gif to play in flash with Haxe, but it wouldn't play, only the first image would show up. Is there any way to get this to work?

Viewing 1 to 4 (4 Total)
Animated GIFs in Haxe/NME

ohblahitsme

ohblahitsme
Total Posts: 15
Joined: May 14, 2012

Hi, I tried to get an animated gif to play in flash with Haxe, but it wouldn't play, only the first image would show up. Is there any way to get this to work?

Tags:
Posted on June 19, 2012 at 12:01 AM

singmajesty

singmajesty
Total Posts: 2141
Joined: August 25, 2011

Re: Animated GIFs in Haxe/NME

I did it with the Nyan Cat animation by importing it intto the Flash IDE first, which detected the frames and split up the animation.

I then exported as a SWF and used the SWF library in order to recreate the animation.

We might be able to add native GIF support for C++ targets (they only support PNG and JPG right now), but you still wouldn't be able to support animated GIFs natively in Flash Player, since we don't have control over what it supports smiling

Posted on June 19, 2012 at 12:12 AM

ohblahitsme

ohblahitsme
Total Posts: 15
Joined: May 14, 2012

Re: Animated GIFs in Haxe/NME

Ah, I see. I don't have the Flash IDE, so is there a different way to do it? I don't want to mess with the Spritesheets and stuff because it looks complicated and I only have two frames that I want animated.

Posted on June 19, 2012 at 12:28 AM

andrew911

andrew911
Total Posts: 22
Joined: May 21, 2012

Re: Animated GIFs in Haxe/NME

Maybe it'll help AS3 GIF Player Class

Posted on June 19, 2012 at 5:12 PM