Yeah hi, I’m not new to as2, nor am I a pro at it. I’ve been having an issue with some of my cookies loading properly. It’s nothing to do with instance names or variable names, it’s the fact that my radio buttons won’t change when I want them to. I’ve gotten a sol editor to see if the variables are being saved, and they are. So, what am I doing wrong, or is this not the code to use?
cookiesload();
applycookies();
var v3settings = SharedObject.getLocal("v3settings", "/");
var savecookie:Boolean = false;
function cookiessave() :Void {
_root.v3settings.data.savecookie = savecookie;
_root.v3settings.flush ();
}
function cookiesload() :Void {
_root.v3settings.data.savecookie = savecookie;
applycookies();
}
function applycookies() {
if (savecookie = true) {
autosave = true;
menuB.radio.saveon.selected = true;
}
if (savecookie = false) {
autosave = false;
menuB.radio.saveoff.selected = true;
}
}
Thanks for the help.