View Full Version : showing xml thumbs in subcategories

03-10-2009, 11:37 PM
Before, my thumbnails were all just in "gallery" and I was able to refer my thumbnails using the following actionscript 3 line:

xmlList = xml.children();

Now that I've divided my xml thumbnails into categories (see below), my actionscript 3 won't pull up any of the thumbnails. How do I modify the line of code so that it pulls them all up?

<image source="Gort.jpg" thumb="Gort_t.jpg>
<image source="ET.jpg" thumb="ET_t.jpg">

<image source="barracuda.jpg" thumb="baracuda_t.jpg">
<image source="starfish.jpg" thumb="starfish_t.jpg">

In my

03-11-2009, 11:07 AM
You will have to build different lists based on categories and then get their children. Something like this

xmlList = xml.firstChild.childNodes; // should get you the category nodes
aliens = xmlList.firstChild.children(); // should get you the aliens children
fish = xmlList.secondChild.children(); // should get you the fish children