Animated Gif
Scott Rossi
scott at tactilemedia.com
Mon May 16 12:11:42 EDT 2005
Recently, Shawn Rampy wrote:
> Is there a way to control the speed of an animated
> gif?
One way is to set the repeatCount of the GIF to 0 and use your own timer to
update the GIF using the currentFrame. Something like:
local fCount
on updateGIF
if fCount = empty or fCount = the frameCount of img myGIF then \
put 0 into fCount
add 1 to fCount
set the currentFrame of img myGIF to fCount
send "updateGIF" to me in 100 millisecs -- UPDATE GIF EVERY 1/10 SECOND
end updateGIF
> Also, is there a way to have an animated gif loop
> indefinitely?
set the repeatCount of img myGIF to -1
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list