as3 URLRequest and file stream saving xml data - Error #3013: File or directory is in use

假如想象 提交于 2019-12-02 06:09:10

As far I as know you could just read the bytes from the stream, something like:

var fileStream:FileStream = new FileStream();
fileStream.open(file, FileMode.READ); 
var myXML:XML = XML(fileStream.readUTFBytes(fileStream.bytesAvailable)); 

Then you have an XML object that you can manipulate as you did in your example.

Papa De Beau

A slight delay is needed BEFORE using the FileStream class to open, write, close. Again, Windows only! I used a timer to call the function that writes to the location.

The answer can was found on this link: Adobe Air FileStream Error #3013: File or directory is in use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!