E
E
Egor Trubnikov-Panov2014-09-01 10:37:00
JavaScript
Egor Trubnikov-Panov, 2014-09-01 10:37:00

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

2 answer(s)
D
Dmitry Skogorev, 2014-09-01
@EnterSandman

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

A
Alexey Nikolaev, 2014-09-01
@Heian

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 question

Ask a Question

731 491 924 answers to any question