Calling Childnodes from XML driven drop down menu

Hello everyone,

I would just like to say that this online community here is probably the most helpful one i’ve ever encountered. Thanks for all the help!

Anyhow, heres my problem. I am trying to use Kirupa’s XML drop down menu(action script 2.0): aka: http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm, however I cannot have it output the childNode. This is because it is using a for loop with the curr_item variable. when I try to trace the for loop count variable, it just returns the last for loop variable. I basically want it so that when I click on a button on the 3rd tier submenu, I want it to output all the prior tiers that the button belongs in. Can anyone help me with that? thanks in advance

_Ivan

I really can’t figure this out, so the loops using childNodes.length as the # of loops, however I can’t return the loop#. For example if the childNodes.length is 3, when I try to access the current items counter, it will return 3 because it will complete the for loop before returning any values. Is there anyway to detect on which loop the menu item belongs to and return it? I tried to use if statements, but it will always return the final loop value. Thanks in advance

search the forums, plus look at the code more:P