When is a GIF Finished Playing?
J. Landman Gay
jacque at hyperactivesw.com
Wed Feb 10 17:59:32 EST 2016
I had to manage gif playback manually once. It worked well to just set
the currentframe repeatedly, ignoring auto-playback entirely. That way
you can keep track of how many cycles you've done and you can control
the speed of playback by changing the "send in time" frequency. You
always know what frame you're on because the script sets it.
I didn't bother to load individual images, just setting the currentframe
On 2/10/2016 4:00 PM, Scott Rossi wrote:
> Nope, you just have to "know" :-)
> -HH makes a good point that I forgot about: if you control the playback
> yourself, setting the GIF's currentFrame every so many millisecs, you'll
> always know which frame you're on in the GIF. This will work for most
> GIFs, but can mess up playback of GIFs that use varying frame delays since
> timing will differ from how the GIF was originally authored.
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the Use-livecode