I'm working at a little game in flex at the moment, and want to save the highscore and saveGames in a xml-file.
I read that this is forbidden because of the flashplayer sandbox restrictions. There's a work-around, where you save a file on a server, and download it afterwards. But my application is an offline-software, so there's no connection to a webserver.
Is there really no other way to save (local-) files??
for 'small' bit of data, like high score in a game, take a look at SharedObject class that allows you to store and retrieve this data.
for writing to files take a look at Flash Player 10 and Flash (flex) builder 4. It does allow to read/write local files.
SharedObject is your solution to store up to 100kb Data! For little data like highscore it s a good solution!
Check out these two links to learn more: