Unless there is a better way, I used
var myXML:XML;
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("com/assets/hyperlinks.xml"));
myLoader.addEventListener(Event.COMPLETE, processXML);
Part of my problem was not escaping the &s in the xml and naming the folder
where it is stored wrong. It always helps to have the right xml structure in
place :), unfortunately I didn't see any obvious hints as to what was failing.
--- In [email protected], "aramsdell2000" <aramsdell2...@...> wrote:
>
> I have an XML file of various hyperlinks that I put in an assets folder in my
> flex application. How do I load that file from actionscript?
>
> I have seen numerous ways to load XML but not directly from a project.
> Doesn't seem like URLRequest ot httpservice is applicable and it isn't a mxml
> widget with attached xml config file so I am confused at what to do. to load
> the file.
>
> In the web application depending on what the user clicks I want to load the
> file, parse it and populate a URL to navigate to.
>
> Thanks!
> Amy
>