Recently, Sivakatirswami wrote:

> Can we control the rate of an GIF animation?

I don't believe you can set the frame rate of an animated GIF, but you can
do like I do and set the currentFrame of the GIF using a "send in" message
handler, something like the following:

on setTheFrame
    set the currentFrame of image MyGIF to \
    the currentFrame of image MyGIF + 1
    if the currentFrame of image MyGIF = \
    the frameCount of image MyGIF then exit setTheFrame
    send setTheFrame to me in XX milliseconds
end setTheFrame

By playing a frame at a time, you can also get more complex animations by
showing some frames faster or slower than others.  You can achieve different
effects and also cut down on filesize since varying perceived speed in an
animated GIF demands more frames thus potentially more overhead.

Regards,

Scott

_____________________________________________________________________
Scott Rossi                       Tactile Media - Multimedia & Design
Creative Director                 Email: [EMAIL PROTECTED]
                                  Web: www.tactilemedia.com


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to