theturtle32 / flash-animated-gif-library Goto Github PK
View Code? Open in Web Editor NEWA wicked fast and robust AS3 library for playing Animated GIFs in Flash.
License: Apache License 2.0
A wicked fast and robust AS3 library for playing Animated GIFs in Flash.
License: Apache License 2.0
Or it will fail when compiling.
Hi,
Your project looks very interesting, but doesn't not seem to declare a license of any sorts, so I do not know whether I am allowed to use your code. Could you add a license? (e.g. MIT Licensed would be wonderful :P)
Thanks :)
Hey!
Friend of mine, used this before in order to replace a background on a 800x600 SWF Window made in AS3. I wanted to do the same so I could have a living background for my game, but how do I make a addchild for it, and where and how can i use URLRequest?
-Thanks :p
It's actually a bug which can be triggered like this:
var gif:GIFPlayer = new GIFPlayer();
gif.addEventListener(GIFPlayerEvent.COMPLETE, function (e:*):void {
addChild(gif);
};
gif.loadBytes(gifDataBytes);
As I tried, two lines' modification should fix this:
handleDecodeComplete
(GIFPlayer.as
) : - if (stage) {
if (autoPlayer) {
...
- }
goto
(GIFPlayer.as
) : + if (stage == null) return;
_cuirrentFrame = requestedIndex;
...
And another problem is that the function goto
need to change it's name into something like gotoFrame
or it will cause error when compiling in lots of flashplayer compile targets.
This is a great project which really properly handled gif files, and is better than the version you can find on the internet written by "bytearray"(?).Thanks and I'm using this lib in a business project.
I've been trying to create a working function that changes the framerate of an animated GIF after initialization since I need it for a project, but I can't seem to figure out anything that works. Is there a chance you could add or tell me how to add such a function? Thanks.
Edit: I figured out a way around the problem by making the step function public and using a timer, but if you still wanted to add this I'm sure there's some people who would appreciate it.
It looks like some GIFs loop infinitely but others don't. I emailed over an example GIF. Hope this helps!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.