I am in need of some actionscripting help quickly! I am trying to get a numeric value from php using the sendAndLoad function. I can get it to ALMOST work, but the flash must not recognize it as a number.
Here is my code :
var scor:Number = 0;
lvOut = new LoadVars();
lvIn = new LoadVars();
lvIn.onLoad = function (success)
{
scor = lvIn.myscore;
trace(scor);
//scor = ;
bet = 1;
win = 0;
};
lvOut.score = 676; //for testing only
lvOut.sendAndLoad("http://www.gothics-r-us.com/getscore.php", lvIn, "POST");
//Then in a function to update the score....
scor = scor + (win - bet);
// this will return 676-1 instead of 675
any ideas??