Actionscript – XML Menu
I have read a few tutorials on this, but none of them are doing it the way I envision mine working. I plan on reading more tuts but as of now I am horribly stuck. Most noteablely I am reading the kirupa tut that explains XML menus but as I said; I picture my differently in my mind.
Anyways, here’s the problem I have encountered: I need to create multiple text fields each with their now name. I think this would work best if I have the var names in the XML file. I need to reference the names in several points so instead of making an array or two to hold the information I plan on treating the single XML as an array for the entire project.
So when I try to pull the names for the text fields out of the XML file and use it in my actionscript, it breaks. Example:
fieldName = menu_xml.childNodes.childNodes[i].childNodes[ii].attributes.cn;
That is what I want. I have tried:
But no luck. I have no idea why this won’t work but as soon as I figure it out I will post it here on my blog. Hopefully I can solve this issue tonight since it has been bother me for a few days. I am also having some loop problems but lets take this one step at a time, eh?