i posted this in flash mx 2004, but then i thought it wasn’t the place to post something like this.
so here it is:
in my php file i’ve this code
echo "total=$totalRows";
and i’m trying to get this value in flash, it works, but not the way i want it.
in flash i’ve this code:
loadVariables("<A href="http://localhost/load.php",this,"POST");[/CODE">http://localhost/load.php",this,"POST");
and then,
tempVar = int(total);
trace("TempVar " + tempVar);
it traces “TempVar 0”.
now, if i make a button and put this code,
tempVar = int(total);
trace("TempVar " + tempVar);
it traces “TempVar 1”
because in my mySql database i’ve one row.
basically, i’ve found out that until the first frame isn’t finished compiling code, these php returned valued don’t get refreshed, is there any way i can get the same value from the code i put on the frame as i get from the button click?
edit: i know i can use a long string, and return that and parse it in flash, but i do not want to do that, because it would take a lot of time to do that. so, is there any other way?