Reputation: 1
how can build a txt document and write in flex application ?
Upvotes: 0
Views: 74
Reputation: 1598
// 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.
Upvotes: 1