<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">If you can afford to change the format of cMap, you can change:<BR>
<BR>
set the filename of image bMap[z] to line y of cMap[x]<BR>
<BR>
to<BR>
<BR>
set the filename of image bMap[z] to cMap[x,y]<BR>
<BR>
i.e. instead of storing multi-line items in the array, use a two-dimensional array.<BR>
<BR>
This will save you *some* line-by-line lookups. By my count, the worst case (where the small square starts at row 33 and continues to row 43, you get this many line scans:<BR>
<BR>
(33*11) + (34*11) + (35*11) ... = (33+34+..43)*11 = 4598 lines scanned.<BR>
<BR>
Frankly, 5000 lines goes pretty quick in Metacard, but it may shave a few milliseconds in some cases.<BR>
<BR>
One other possibility, instead of always using the filename property: create hidden image objects for each of the 800+ images. Thus they load once when the card opens. Now... instead of setting the fileName of other objects, set the imageData property:<BR>
<BR>
set the imageData of image bMap[z] to the imageData of image cMap[x,y]<BR>
<BR>
Of course, this has it's own drawbacks, not the least of which is 800+ extra objects.<BR>
<BR>
HTH<BR>
<BR>
------------------------------<BR>
Brian Yennie<BR>
Chief Technology Officer<BR>
QLD Learning, LLC<BR>
www.QLDLearning.com<BR>
<BR>
PH: (904)-997-0212<BR>
EMAIL: Yennie@aol.com<BR>
-------------------------------<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>