Brain foo

Shari gypsyware at earthlink.net
Thu Apr 17 10:25:00 EDT 2003


>Wouldn't it be faster to run only one loop, like the following?
>  repeat for each line x in it
>    import paint from file (imageList & "/" & x)
>    set the visible of image x to false
>  end repeat
>  set the visible of image 1 to true
>Also, is there any speed difference between
>  set the visible of image x to false
>and
>  hide image x
>?
>miscdas _______________________________________________
>metacard mailing list

Yes, probably faster :-)

I was in a hurry trying to get the images imported, so that I could 
play with the code to get it down to the coveted 65 millisecond mark.

I actually botched that whole post.  I was talking about grouping 
objects, several at once, and THAT was the handler I meant to post, 
not the quickie import handler.

I wrote:

===
Anybody know why you cannot embed a list of images?

I tried group theList, using image x, image id x, and image 
imageName.  I finally wrote the following (very fast) handler to 
import all those images:
===

Where embed should have been "group".  And import should have been 
"group".  And the handler should have been the one where I took the 
list of objects, got the object number, put them into a variable 
adding "and" after each one, and then ran it, to group the objects. 
Let's just say it must have been one helluva brain foo to mangle the 
post that badly :-)

Shari C
-- 
--Shareware Games for the Mac--
http://www.gypsyware.com



More information about the metacard mailing list