Copy link to clipboard
Copied
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;
}
Copy link to clipboard
Copied
Anyone who can help me a email disappointing navtchyev@gmail.com
Copy link to clipboard
Copied
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;
}
Copy link to clipboard
Copied
so.data.score_all = level_mc.bheus_tzt_all.text; | ||||
trace(so.data.score_all); |
I did this and I worked in the (trace)
But I have to keep the score ...
how?
By the way your code does not really work for me.
Copy link to clipboard
Copied
i can to talk with you in private?
facebook?
of skyp or something?
Copy link to clipboard
Copied
Testing for null is only done the one time to initialize the shared object. To store the score you need to both set the property and then flush it:
so.data.score_all = yourScore...
so.flush();