At 11/6/09 03:07 PM, K-Guare wrote:
At 11/6/09 03:03 PM, simonhason wrote:
is this correct?
Do you ever set a value for so.data.tname?
Because if you don't, there's your problem.
Ah you're right, I got this from a tutorial ( not dealing with variables ) and I wasn't sure what tname was. I set a new variable called so.data.saved to be "true" when you press the save button, and on my frame
if(so.data.saved != undefined) {
which seems to be working.
One more question, if I have variables set to true and false how would I define those inside of the sharedObject?
ex :
if(so.data.saved != undefined) {
_root.unlocked = false;
}else{
_root.unlocked = so.data.unlocked;
}
and somewhere along the game _root.unlocked = true; so on the save would it be :
so.data.unlocked = _root.unlocked;
so.data.flush();
? Thanks so far you guys have been amazing help!