Revision: 40354
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 31, 2011 14:17 by GrfxGuru
Initial Code
public var file:FileReference = new FileReference();
public function doSave( event:Event ):void
{
// txtField is the instance name of a text field with contents to save.
var data:ByteArray = new ByteArray();
data.writeMultiByte ( txtField.text, "utf-8" );
file.save( data, "myfile.txt" );
}
Initial URL
Initial Description
Initial Title
Adobe AIR - Save text to local text file
Initial Tags
file, actionscript, text
Initial Language
ActionScript 3