When is a GIF Finished Playing?
Ray
ray at linkit.com
Wed Feb 10 14:29:49 EST 2016
Thanks Scott, but if you've set the RepeatCount to more than 1 and it's
looping through the frames, twice for example, isn't there a possibility
you'll get the CurrentFrame the same as the FrameCount too early?
On 2/10/2016 2:25 PM, Scott Rossi wrote:
> I haven't done this in a long time, but in theory you should be able to
> compare the currentFrame of the GIF with the frameCount.
>
> if the currentFrame of img "myGif" = the frameCount of img "myGif" then
> answer "It's done"
>
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
> On 2/10/16, 10:51 AM, "use-livecode on behalf of Ray"
> <use-livecode-bounces at lists.runrev.com on behalf of ray at linkit.com> wrote:
>
>> Does anybody know of an easy way to tell whether a GIF file is playing
>> or not?
>>
>> If possible I'd like to avoid trying to write something involved using
>> the CurrentFrame and FrameCount properties. I'm not even sure how that
>> would be done.
>>
>> I'd rather have something like the sound() function, as in:
>>
>> on mouseUp
>> set the repeatCount of img myGif to 10
>> repeat while gif(myImg) is not "done"
>> end repeat
>> answer "It's done!"
>> end mouseUp
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list