Hi,
I would like to thank everyone in advance for the help these forums and the people on them provide. Lots of great info!
I did a search for a problem I am having and cannot seem to find anything on it.
I am trying to save locally into the users computer with a Shared Object, but have multiple variables to change and save using a function. I cannot seem to get the syntax correct for it to work.
This is suppose to check the variable names _root.levelcompletestatus011 through _root.levelcompletestatus070 and if any of them equal 4, then change them to 0 and save to the local file.
Here is what I have so far:
function templockopen() {
for (i=11; i<71; i++) {
if (eval("_root.levelcompletestatus0"+i) == 4) {
this[“levelcompletestatus0”+String(i)] = 0;
this[“savefile.data.level0”+String(i)] = eval("_root.levelcompletestatus0"+i);
_root.savefile.flush();
trace(eval("_root.levelcompletestatus0"+i))
}
}
}
I appreciate any help you can give.
Thank you,
tcooley2003@yahoo.com