开发者

how can build a txt document and write in flex application?

开发者 https://www.devze.com 2023-01-11 08:20 出处:网络
how can build a txt document and write in flex appl开发者_JAVA技巧ication ?// in an init type method

how can build a txt document and write in flex appl开发者_JAVA技巧ication ?


// 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");

This may require that the user has Flash Player 10.

0

精彩评论

暂无评论...
验证码 换一张
取 消