如何构建txt文档并在flex应用程序中编写?
答案 0 :(得分:1)
// in an init type method
var fileRef:FileReference = new FileReference();
var text:String = "Some text I want to save";
// continue building the text String variable as desired
// in some method that responds to a user event (NOT a system event):
fileRef.save(text, "defaultFileName.txt");
这可能要求用户拥有Flash Player 10。