import flash.events.Event; import flash.net.*; public function execute():void { var XML_URL:String = "../config/config.xml"; var myXMLURL:URLRequest = new URLRequest(XML_URL); appLoader = new URLLoader(myXMLURL); appLoader.addEventListener("complete", configLoaded); }
private function configLoaded(event:Event):void { appConfigData = new XML(appLoader.data); } HTH, Ben --- In flexcoders@yahoogroups.com, "Ben Agre" <[EMAIL PROTECTED]> wrote: > > I'm looking for a way to load a configuration file in flex that is in > the folder on runtime. It can be any type of text file I just want to > load it then declare a variable from the item that is loaded. A > simple question I thought but I still can't find the answer. Any help > is greatly appreciated. [:-/] > ------------------------ Yahoo! Groups Sponsor --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/