Create Files In Flash


This would be very good for saving game data, like what level the user got up to etc.

Flash ActionScript
  1. this.onEnterFrame=function(){
  2. data="The text to be stored which can be later retrieved on a users computer";
  3. MMSave(data,"savedata.txt");
  4. }



data="blah"; is the stuff you want saved on the users computer, (local not remote)

Hope this helps, and I'll do a follow up tutorial later on on how to retrieve the data ;)

by the way, you need to put this on a frame in the code of

this.onEnterFrame=function(){

PUT CODE HERE

}
chrism's Avatar
Author:
Views:
2,451
Rating:
Posted on Thursday 15th February 2007 at 02:03 PM
azeem
azeem's Avatar
Hey can you continue this tutorial its really good