开发者

Loading File in Flex without AIR?

i am using flexbuilder 3 now i need to load xml file from disk using flex without AIR i imported flash.filesystem.File but error occured. but AIR project,flash.filesystem.File was successfully imported. Cant i use flash.filesystem.File from flex without开发者_如何转开发 using AIR???


You can only use flash.filesystem.File in AIR. But you can still load XML files using either HTTPService or URLLoader. Check out this answer which has sample code for loading XML into Flex.

If you get a Security Sandbox Error when trying to load, set the Flex Compiler argument use-network=false, which will allow you to load local files into the swf.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜