Save the value of a Boolean variable
How can I be saving the value of a Boolean variable, so that when I open the file, it can be with the settings in which I left?
I created the variable to the top of the frame:
var audio:Boolean = true;
And I added the conditions for the buttons:
if(audio == true) {
Sound.play();
}
But every time I have to open the application preference is reset to true, wanted to leave with that preference be saved in the case of boolean, true (on) or false (off).
can anybody help me? Please.
Thanks in advance!
