Thank you, following your advice I can now load the gif. But the animation won’t play :(. I tried with 2 libraries, haxe-gif and yagp
Haxe-gif:
var bytes = haxe.io.Bytes.ofData(Assets.getBytes("images/mygif.gif"));
addChild(new AnimatedGif(bytes).play());
yagp:
var gif:Gif = GifDecoder.parseByteArray(Assets.getBytes("binaries/" + src));
var player:GifPlayer = new GifPlayer(gif);
var wrapper:GifPlayerWrapper = new GifPlayerWrapper(player);
addChild(wrapper);
I got the same result for both: only the first frame is displayed and the animation does not run. I only target Flash and my gif size is 960x540 pixel.
I tried with different files and the animation is correctly played in a browser so the issue does not come from there… I join a very basic example.