如何构建一个txt文档并在flex应用程序中编写?

时间:2010-08-14 16:14:25

标签: flex

如何构建txt文档并在flex应用程序中编写?

1 个答案:

答案 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。