Answer the question
In order to leave comments, you need to log in
How to know the end of flash and gif animation playback?
There is a set of banners on flash and gifs. you need to somehow find out when a particular banner has finished the animation in order to show the next one.
How can I do that?
Answer the question
In order to leave comments, you need to log in
oh, those advertising rotaries =)
you can say that without bicycles
in the case of a flash - make a callback inside the banner at the end of the animation
in the case of gifs .... convert the gif into a sequence of frames or a sprite and then animate them with the same jquery
The task is very specific.
In the case of flash - only through callbacks within the swf itself, and in the case of gif, you can count the number of frames and try to get an approximate time.
There is a library that can count the number of frames, you may only need to pull this code into a separate function (saving it of unnecessary functionality). Also Imagick (php) can count the number of frames in a gif.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question