tango88
03-02-2007, 01:16 AM
Briefly, I have a game that tracks high scores, stored on a database. The game reads the scores using a php script like so:
...$num=mysql_numrows($result)-1;
$name1=mysql_result($result,$num,"name1");
$score1=mysql_result($result,$num,"score1");
$month=mysql_result($result,$num,"month");
$passIn = "" ;
$passIn .= "name1=" . $name1 . "&" ;
$passIn .= "score1=" . $score1 . "&" ;
$passIn .= "month=" . $month . "&" ;
$passIn .= "serverdate=" . $serverdate . "&" ;
echo $passIn ;...
Then I use loadVars to get the values into flash.
However, it seems that when players go back and play again, they get the old scores from the temporary Internet cache. They can then beat the old score and overwrite a newer score which is actually higher.
Is there a way I can get the values into flash without leaving a cache file? I'm at the limit of my (narrow) programming abilities with this one.
...$num=mysql_numrows($result)-1;
$name1=mysql_result($result,$num,"name1");
$score1=mysql_result($result,$num,"score1");
$month=mysql_result($result,$num,"month");
$passIn = "" ;
$passIn .= "name1=" . $name1 . "&" ;
$passIn .= "score1=" . $score1 . "&" ;
$passIn .= "month=" . $month . "&" ;
$passIn .= "serverdate=" . $serverdate . "&" ;
echo $passIn ;...
Then I use loadVars to get the values into flash.
However, it seems that when players go back and play again, they get the old scores from the temporary Internet cache. They can then beat the old score and overwrite a newer score which is actually higher.
Is there a way I can get the values into flash without leaving a cache file? I'm at the limit of my (narrow) programming abilities with this one.