Revision: 70060
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 11, 2015 23:59 by SinVerguenzaGames
Initial Code
//Sin Verguenza Games - Google Play Store
import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.filesystem.FileStream;
//store the text box text into a variable that will be used later in the code
var printerData = printer.text.toString();
var file: File = File.desktopDirectory.resolvePath("score.txt");
var stream: FileStream = new FileStream();
stream.open(file, FileMode.WRITE);
//this line below actually posts the text box text into the created file
stream.writeUTFBytes (printerData);
stream.close();
//[email protected] 2015
//Orlando Florida USA
Initial URL
Initial Description
This code shows how not only to create a text file onto the local computer desktop, but also how to post the contents of a 'text box' object into the file.
Initial Title
Post Text Box Text Into Text File
Initial Tags
actionscript
Initial Language
ActionScript 3