开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜