1 person found this helpful
you can use the filereference class'es save() method.
ok so i'm a bit new to flash, any help would be much appreciated as i've never used the save method.
i've got the boolean variable: flag,
and i want to output it's value to a text file when i press the taketheticket button:
this is was i have so far
trace("the change is " + flag);
Ok I've managed to do it:
var file:FileReference = new FileReference(); //create a filereference object
var flag:Boolean = false; // create the variable
trace("the change is" + flag); // prints the change value
file.save(flag, "result.text"); // saves the value of flag in a text file named result.text
gotoAndStop(8); // go to frame 8 and stop
when the method above is exectuted it allows you to select a particular destination.
do you know how to use the flash help files? if not, you should learn.