Hiya, I'm a bit new to actionscript and xml but I've been reading a tutorial book and I'm now trying to make a navigation bar where the number of buttons, their labels and links are defined by an XML document.
I'm using the exercise material supplied with my book as a basis, found at
Learning ActionScript 3.0 under chapter 14.
These materials include a submenu, which I dont want. So far I've managed to stop the submenu appearing, the correct number of buttons and labels appear, but I can't get the buttons to take their links from the XML document.
The material is set up so that there is a navigationbar.as which builds the bar, a LoadXML.as which loads the xml, a LoadURL.as, and then two files to define the buttons.
One is MainMenuButton.as which defines the navigation bar, giving each button its position and label, and telling the submenu where to appear.
The second is SubMenuButton.as which defines the submenu buttons, their number, label and links.
The SubMenuButton file draws its links from the XML Document, but I can't, no matter what I try, get the MainMenuButton.as file to draw the links instead. I have currently got the buttons in the MainMenuButton.as to open up a link defined within the .as file, so the functionality is correct, but I cant get them to read anything from the XML.
Please help, I've been stumped on this same problem for over a week.