【发布时间】:2017-06-29 23:20:30
【问题描述】:
我使用 JPEXS Free Flash Decompiler 10.0.0 反编译了 *.swf 文件
添加新功能,将字符串保存到文本文件
代码:
package
{
...
import flash.filesystem.*; // my code
public class NewSocket extends SecureSocket
{
....
public function send(param1:String) : void
{
// my code
var file : File = File.desktopDirector.resolvePath("your_file_name.txt");
var fs : FileStream = new FileStream();
fs.open(file, FileMode.WRITE);
fs.writeUTFBytes(param1);
fs.close();
// my code
...
}
...
}
}
我收到消息“不是类型字符串 №..”
这个字符串
var 文件 : File = File.desktopDirector.resolvePath("y our_file_name.txt");
签入 Flash CS6
导入 flash.filesystem;
我没有这个库
adobe AIR 已安装
我该如何解决这个问题
谢谢!
【问题讨论】:
标签: actionscript-3 flash air adobe decompiling