Usage of thread - Haxe Gif

Hi

I try to implement the library Haxe-Gif (here) in my project.
Usage is very simple but i face off one problem.

Example
m_bytes = Bytes.ofString(m_urlLoader.data); m_gif = new AnimatedGif(m_bytes);

When i create AnimatedGif object, my application freezes during few second. This freeze comes from the AnimatedGif treatement.

Can i use thread for this task and how ?

here a example : pastebin link

This other lib: https://github.com/Yanrishatum/yagp states that supports “Asynchronous parsing”, maybe its worth trying.

Seems a work for a BackgroundWorker instead of a thread…

http://www.openfl.org/blog/2015/10/06/october-update

Work like a charm on IOS, android and neko !

Thank’s you ![quote=“DanielUranga, post:2, topic:7015, full:true”]
This other lib: https://github.com/Yanrishatum/yagp states that supports “Asynchronous parsing”, maybe its worth trying.
[/quote]

Oh great !
I didn’t know BackgroundWorker and i’m not familiar with the thread usage, so i’ll read about it !
Thank’s you too ![quote=“zeus25971, post:3, topic:7015, full:true”]
Seems a work for a BackgroundWorker instead of a thread…

http://www.openfl.org/blog/2015/10/06/october-update
[/quote]

Open to animated GIF support in Lime/OpenFL if there’s interest? :wink: