thanks for all the suggestions, y'all, this is great!

i tried reversing the order of my xml/array, but the image position in the array determines which large image is shown in the gallery. if i flip the array, the wrong images appear.

i'm in the midst of trying a for loop (thanks, jason, for clarifying the backwards/forwards loops! that's one mystery solved for me.). i called "k" from when i load the xml into flash, it's the same as "i". is there a way to make it go up instead of down when i call it? i tried to sort the array backwards right before thumbnails_fn, but then some of the thumbnails show up multiple times, and some not at all. i think my problem comes in when i use the movieClipLoader, because i'm calling (thumbnails[k], "thumbnail_mc.t"+k) from (target_mc), right? so it's loading the jpg's defined by the xml array one by one from the last to the first as movieClips into thumbnail_mc instead of first to last.

learning is fun. horrifyingly, frustratingly fun. if i had the $$ i would take a class!

i'll keep barreling forward, but in case any of you feel inspired with more genius than me, here's the <snipped> version with (hopefully) all the relevant info:

<snip>
       for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; thumbnails[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
           //// here's what's being called by k
           thumbnails_fn(i);
       }
</snip>
<snip>
w = 0
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
   tlistener = new Object();
   tlistener.onLoadInit = function(target_mc) {
       /// place thumbs THIS IS WHAT'S MESSIN' ME UP
       target_mc._x = w
       w = target_mc._x + target_mc._width + 1
</snip>
<snip>
   };
   image_mcl = new MovieClipLoader();
   image_mcl.addListener(tlistener);
   image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
</snip>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to