I use a function like this: private
function loadXml(aXmlFileName:String, aResultCallBack:Function):void { var
xmlLoader:HTTPService; xmlLoader
= new HTTPService(); xmlLoader.resultFormat
= "e4x"; xmlLoader.url
= ""> xmlLoader.addEventListener("fault",
Application.application.handleFault); xmlLoader.addEventListener("result",
aResultCallBack); xmlLoader.send(); } The URL ‘aXmlFileName’ follows
the format "config/MasterData.xml" for example, where config is a
directory in the folder where the Flex application has been downloaded from. In your callback function, you can deal
with the XML as follows: private
function handleMasterDataXmlLoaded(aEvent:ResultEvent):void {
var masterDataXml:XML; masterDataXml
= aEvent.result as XML; } HTH, Franck From: how do I load local XML? -- 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
__,_._,___ |
- Re: [flexcoders] loading xml Samuel Colak
- Re: [flexcoders] loading xml aaron smith
- Re: [flexcoders] loading xml Raffaele Sena
- RE: [flexcoders] loading xml Franck de Bruijn