PDA

View Full Version : [AS2] high score help


mth_satan
06-28-2011, 04:26 PM
this is a high scroe code that get result from mysql by a php file (get_score2.php) and view the result in dynamic text boxes n0,n2,...,n5 for player name and s0,s1,s2,...,s5 for scores :

var lowHighScore = 0;

myData = new LoadVars();
myData.load("get_score2.php");
myData.onLoad = function(success) {
if(success) {
for(var i=0; i<this['count']; i++) {
_root["n"+i].text = this['player']+i;
_root["s"+i].text = this['winpot']+i;

if(i==6) {
lowHighScore = s6.text;
}

}
}
else
{
trace("ERROR Loading");
}

}

i have renamed the php file and i still get the same result in the dynamic text boxes _level0.n0 _level0.s0 _level0.n1 _level0.s1 ......

the problem is in action script can u help me please :(