Threaded anim GIFs?

Trevor DeVore lists at mangomultimedia.com
Thu Jun 2 18:41:03 EDT 2005


On Jun 2, 2005, at 2:22 PM, Richard Gaskin wrote:
>>    Stupid question: Is there any reason that something in this 
>> neighborhood would be unsuitable to your purpose?
>> on AnimGif FrameNum
>>   if FrameNum = "" then put 1 into FrameNum
>>   set the frame of img "Fred" to FrameNum
>>   put 1 + (FrameNum mod (the number of frames in img "Fred")) into 
>> FrameNum
>>    send ("AnimGif" && FrameNum) to me in 100 milliseconds
>> end AnimGif
>
> When used in a repeat loop, the "send" will never be received until 
> after the loop is done.  I can call it inside the loop, but it's just 
> overhead compared to the greater efficiency of Trevor's request to 
> have it in the engine.
>
> When used outside of a repeat loop it'll work okay, but if we have 50 
> or 100 such GIFs (think games) it'll bog down relative to what the 
> engine could do for us.

And it does not solve the problem of the animation "freezing" while 
loading QT movies.


-- 
Trevor DeVore
Blue Mango Multimedia
trevor at mangomultimedia.com



More information about the use-livecode mailing list