Hi. Besides of what Colin suggested, if you want to use AIR, here is an example: import flash.filesystem.File; import flash.events.Event; import flash.events.FocusEvent; import flash.events.IOErrorEvent; import flash.utils.ByteArray; import flash.events.MouseEvent; import flash.text.TextField; // save function save(filePath:String, saveString:String, completeFunction:Function, errorFunction:Function):void { var file:File = File.applicationStorageDirectory.resolvePath(filePath); file.addEventListener(Event.COMPLETE, completeFunction); file.addEventListener(IOErrorEvent.IO_ERROR, errorFunction); file.save(saveString); } function fileSaved(e:Event):void { trace("Data saved."); } function fileSavingError(e:IOErrorEvent):void { trace(e.text); } // load function load(filePath:String, completeFunction:Function, errorFunction:Function):void { var file:File = File.applicationStorageDirectory.resolvePath(filePath); file.addEventListener(Event.COMPLETE, completeFunction); file.addEventListener(IOErrorEvent.IO_ERROR, errorFunction); file.load(); } function fileLoaded(e:Event):void { var file:File = e.target as File; var bytes:ByteArray = file.data as ByteArray; var str:String = bytes.readUTFBytes(bytes.length); loadText.text = str; trace("Data loaded: " + str); } function fileLoadingError(e:IOErrorEvent):void { trace(e.text); } function saveHandler(e:FocusEvent):void { save("test.txt", (e.currentTarget as TextField).text, fileSaved, fileSavingError); } function loadHandler(e:MouseEvent):void { load("test.txt", fileLoaded, fileLoadingError); } saveText.addEventListener(FocusEvent.FOCUS_OUT, saveHandler); loadText.addEventListener(MouseEvent.CLICK, loadHandler); load("test.txt", fileLoaded, fileLoadingError); Change the text field on the left to save its text and click on the text field on the right to load the saved text. FLA download: save_and_load.zip - Google Drive Official reference: Adobe AIR 1.5 * Using the load() and save() methods
... View more