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 worked okay.

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         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to