Writing to a file in as3 flash develop

2019-08-24 09:50发布

问题:

Ive been doing some research and I cant seem to find anything on writing to a file. My initial question was writing a array to a seperate file. But now I am looking for resources on how to write any data such as XML or a array to a file. What I want to do is create a game editor. I want to eventually save that data to a file to be opened later. if anyone can help me that would be great.

回答1:

You need at least flash player 10, and use the save function from the FileReference object.

  • Official doc

  • another example