I am trying to get some things working with my app and apollo preview. I can get it to save a file locally when it goes offline fine. But I would like to start extending it so that I can give it an arrayCollection(s) and it will write out an xml structured file.
This is what I am using to save a basic string. private function saveFile():void{ var file:File = File.appStorageDirectory.resolve("Files/userinfo.txt"); var stream:FileStream = new FileStream() stream.open(file, FileMode.WRITE); var str:String = loggedinuser.toString() + "\r " + "other data"; str = str.replace(/\r/g, File.lineEnding); stream.writeUTFBytes(str); stream.close(); str = ""; } any snippets or links to show me how to export arrays/arrayCollections would be appreciated :) Impudent1 LeapFrog Productions