displaying numerous large image files quickly
J. Landman Gay
jacque at hyperactivesw.com
Sun Feb 21 18:59:51 EST 2010
Mark Swindell wrote:
> I'm working on a simple game of concentration for the kids I teach.
>
>
> I have 24 small image rectangles grouped on a card that are populated
> in a repeat loop which sets their fileNames to line x of a list of
> filenames held in a variable. These files can be large images.
>
> lock screen
> put the seconds into vSecs
> repeat with x = 1 to 24
> set the filename of image x of group "imageGroup" to line x of vPopulate
> end repeat
> unlock screen
> put (the seconds - vSecs)
>
> The above takes 5 seconds (which is close to an eternity...)
>
> Is there a faster way to make this happen, or should I simply make a
> progress bar and not worry about it?
Just off the top of my head, try locking messages too. Or hide the
images, set the filenames, and reshow them. Haven't actually tested any
of that though. Even better would be to store smaller images if you can.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list