Hello,
I'm creating a game in flash and I want to create some user defined preferences that can be saved and reloaded at a later time. I just want to save a bunch of variables to a file in the directory that the .swf is in (or ideally in a directory below that directory). Saving it as plain text would be fine. I looked into doing XML, but it just seems overkill for what I want to do.
I have this on the main timeline:
testSave = new LoadVars();
testSave.message="Hi there!";
then a movieClip button that does this:
on (press) {
_root.testSave.send("testSave.txt"
trace (_root.testSave.message);
trace ("I did something"
}
I get the traces but no file. What am I doing wrong. It seems that this should be really simple.
isNaN(jaxon)
I'm creating a game in flash and I want to create some user defined preferences that can be saved and reloaded at a later time. I just want to save a bunch of variables to a file in the directory that the .swf is in (or ideally in a directory below that directory). Saving it as plain text would be fine. I looked into doing XML, but it just seems overkill for what I want to do.
I have this on the main timeline:
testSave = new LoadVars();
testSave.message="Hi there!";
then a movieClip button that does this:
on (press) {
_root.testSave.send("testSave.txt"
trace (_root.testSave.message);
trace ("I did something"
}
I get the traces but no file. What am I doing wrong. It seems that this should be really simple.
isNaN(jaxon)