Animated Gifs on Other Cards

Sannyasin Brahmanathaswami brahma at hindu.org
Mon Jan 2 22:23:08 EST 2017


if we import an animated gif into a card called "image-resources" which might be e.g. card 3. with repeat set to -1… i.e it is running continuously…

When are on Card 1… is that GIF still running and taking up CPU cycles even though it is effectively "hidden" by virtue of being on Card 3?

OR

is best practice to always stop, start and stop them programmatically so that, when not actually shown, they are not repeating?

Use case would be to use an animated give as the icon for a button… if you set the icon ID of  a button on cd 1 that is an animated running GIF stored on card 3  it works, but I'm concerned about any performance degradation that these might have if left repeating "behind the scenes"

perhaps there are none, if not, that would keep life simple and you don't have to commands to stop and start the GIF every time you want to show it.

BR





More information about the use-livecode mailing list