I know the question was already posted here, but the topic was "Solved". Actually it was just closed. I will try to explain what I need to do.
I have variable and text object which shows the lowest score to beat if you want to get to high scores table (global, from server). When the game starts everything is fine. Request is completed, variable gets the proper score, text object shows what it should.
So it looks kinda like this:
SYSTEM -- On start of layout:
Ajax: Request URL: blablabal "getscores";
AJAX -- On "getscores" completed:
System: Set Variable to tokenat(blablabnla)
TextObj: Set Text to tokenat(blablabnla)
And then, when player dies, I compare his score with lowest score mentionend above. If it's bigger - then he can upload his score. Up to this moment everything works great
The problem starts when the layout restarts on my mobile device (Windows Phone 8.1). Score remains the same as it was at the begining (both text and variable). And I see it's trying to request the url as at the begging TextObj shows string "Offline" in case the server is down or player has no internet connecttion. I need to restart app to make it refresh Ajax.LastData
Sorry for bad english