Answered
as3 SharedObject || how can i save my score?
so.. this is my code

"so.flush();" -- It keeps my points right?
Unfortunately it does not work for me..
Can someone please fix my code?
so.. this is my code

"so.flush();" -- It keeps my points right?
Unfortunately it does not work for me..
Can someone please fix my code?
You're setting score but not doing the flush(). You are only doing flush() in the else. This should work better:
if(so.data.score == null){
so.data.score = level_mc.bheus_tzt_all.text; //already a string...
so.flush();
}else{
level_mc.bheus_tzt_all.text = so.data.score;
}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.