views:

66

answers:

2

What I'm working on is a navigation bar populated by an XML document.

I'm working from an existing navigation bar while I learn, and the existing bar has a menu, and when clicked each button has a sub menu.

I'm trying to remove the submenu so that when you click the navigation bar button, you go to the address defined in the XML.

So far I've got everything working so that there is no sub menu drop down, and when you click a button, you are taken to a URL defined in the actual flash AS file.

I can't seem to get the AS file to call on the XML file to the get a URL from it though.

How do I tell the AS file to call a variable from the XML document?

I know I have the correct Node path because it works in a second AS file.

A: 

Loading data is done with flash.net::URLLoader. Fetch the loaded data on Event.COMPLETE (load operations are asynchronous), and convert it to XML using the top level XML function.

XML traversal is most easily done using E4X.

back2dos
A: 

Tnasadfsdfsadfzzx xx ssadfanks.