When is a GIF Finished Playing?

Ray ray at linkit.com
Wed Feb 10 15:06:23 EST 2016


It would also be helpful if a message was sent each time a new frame is 
displayed.  We could trap for those messages, count them, and go from there.

On 2/10/2016 2:48 PM, Sannyasin Brahmanathaswami wrote:
>   
> I have a similar need.
>
> Seems we can set the repeatCount, but I don’t see a way to test for “currentLoop”
>
> Theoretically we need something like — where I am making up an unknown prop called “currentLoop":
>
> if (the currentFrame of img "myGif" = the frameCount of img “myGif”) AND \
> (the currentLoop of img “myGif" = the repeatCount of img “myGif")
>
> then
>
> answer “Ok I am indeed done”
>
> end if
>
> On February 10, 2016 at 9:29:57 AM, Ray (ray at linkit.com(mailto:ray at linkit.com)) wrote:
>
>> 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?
> _______________________________________________
> 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