My xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<gallery>
<album id="liveshots" title="liveshots" lgPath="photos/livelg" tnPath="photos/livetn" tn="galleryThumb.jpg" description="liveshots">
<img src="live1.jpg" caption="This where your photo caption would be" />
<img src="live2.jpg" caption="This where your photo caption would be" />
<img src="live3.jpg" caption="This where your photo caption would be" />
</album>
<album id="studioshots" title="studioshots" lgPath="photos/studiolg" tnPath="photos/studiotn" tn="galleryThumb.jpg" description="liveshots">
<img src="stu1.jpg" caption="This where your photo caption would be" />
<img src="stu2.jpg" caption="This where your photo caption would be" />
<img src="stu3.jpg" caption="This where your photo caption would be" />
<img src="stu4.jpg" caption="This where your photo caption would be" />
</album>
</gallery>
I can get into the ‘liveshots’ area no problem. My issue is getting to the ‘studioshots’ area. My code looks like this:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR] = [COLOR=#000000]new[/COLOR] [COLOR=#0000FF]XML[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR].[COLOR=#0000FF]ignoreWhite[/COLOR] = [COLOR=#000000]true[/COLOR];
[COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR].[COLOR=#0000FF]onLoad[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
livelength = imagesxml.[COLOR=#0000FF]firstChild[/COLOR].[COLOR=#0000FF]firstChild[/COLOR].[COLOR=#0000FF]childNodes[/COLOR].[COLOR=#0000FF]length[/COLOR];
studiolength = imagesxml…
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000FF]trace[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#0000FF]_root[/COLOR].[COLOR=#000080]imagesxml[/COLOR].[COLOR=#0000FF]load[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]
[/FONT]
as you can see studiolength hasnt been defined yet since I dont know how to navigate to it. I know its something simple. Any hints? Thanks a lot!
-Ronnie