Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alternating between subnodes

Status
Not open for further replies.

flipflop9

Programmer
Sep 23, 2006
1
CA
Hi there,

I am a designer, pretty new to XML. I am trying to create a site about construction whereby I can select a house from a list and then view the photos of that house, all using XML.

I can get everything working fine, except...

When I load the photos and move between them, it will always play the first picture of a new house, not the next picture of the same home. I.E. if I am on house #1, photo #1 and I click "next photo", it takes me to house #2, photo #1 and not house #1, photo #2 (which I what I want to happen).

Basically, I know I am displaying the childnodes' firstChild when what I want to do is move between siblings. However, I don't know how to do it!

View the source code at the following pages to see my XML and my Actionscript.

travelbugger.brucecheshire.com/xml.html
travelbugger.brucecheshire.com/actionscript.html



All help would be super appreciated!!!

thanks,
flipflop



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top