你好,我有一个 ActionScript 3.0 游戏
我一直在浏览互联网,我发现了这样的东西
var file:FileReference = new FileReference();
file.addEventListener(Event.SELECT, _onRefSelect);
file.addEventListener(Event.CANCEL, _onRefCancel);
var ba:ByteArray = new ByteArray();
ba.writeUTFBytes(xmlUsers);
//save into drive
file.save( ba, "myXML.xml" );
但我收到此错误:
Call to a possibly undefined method save through a reference with static type flash.net:FileReference.
最佳答案
将编译器设置更改为版本 10
默认为 9
关于actionscript-3 - 使用 FileReference 在 ActionScript 3.0 中保存文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8875432/