0

I need a way to create a swf application that creates a file in the same folder that my swf will be and to be able to read and write stuff on it so i can have a "save" file.

I wanna know if that's possible and the easiest way for me to do it.

Thanks

user3120770
  • 199
  • 1
  • 7
  • 19

1 Answers1

0

About the database, you have a similar question here and also a positive answer, hope will help you. To save your file you will need to use the File API

var file:File = File.desktopDirectory.resolvePath("myFileName.txt");
var stream:FileStream = new FileStream();
stream.open(file, FileMode.WRITE);
stream.writeUTFBytes("This is my text file.");
stream.close();
Community
  • 1
  • 1
gabriel
  • 2,351
  • 4
  • 20
  • 23