Using external xml data in a Flex application without compiling the source into the application
I want to read xml data to a mxml application from a xml file on my filesystem. The example I found was fo开发者_运维问答r AIR,link2, link3. But I want to target the Flash Player runtime. If I use the the tag, I can do it; however the xml compiles into my swf. How can I retain the xml file in my release build?
You can use UrlLoader to load the external xml at runtime. You may need to delay the loading of your app components until the xml has been loaded (depending on the details of your application.)
You need to use the mx:HTTPService tag , as referenced in the link you've provided
精彩评论