Reputation: 1432
Hey there, i was wondering what the AS3 experts would do to perform this task: save user data (registry form) locally, and then be able to read it or export it into something client can read.
Thanks in advance, i am quite new to the AS3 approach to this things, thing to notice is this project is pure AS3, and deployed in Adobe AIR, so no server programming.
Upvotes: 0
Views: 1260
Reputation: 4434
you can save data in SharedObject to make it readable from flash. if you need to export it to a user defined location you can use FileReference.save() method, but to read it back the user must enter the path to file manually
Upvotes: 3
Reputation: 9897
If you have access to AIR features, you can save large amounts of data in a file:
var storage:File = File.applicationStorageDirectory.resolvePath("data.xml");
var stream:FileStream = new FileStream();
stream.open(storage, FileMode.WRITE);
stream.writeSomething //there are various .writeXXX functions
stream.close();
I would save xml file (just to avoid inventing custom parser), then read it back.
Upvotes: 2
Reputation: 9572
Depending on the size of your data, you could use a SharedObject to save your data locally.
As for something the client can read , can you be more specific?
Upvotes: 0