Post/Receive Data from ASP page
Hi,
I am trying to use the URLRequest to post 4 scores (totalscore1, totalscore2, totalscore3, totalscore4) to an ASP page on a server, where the ASP will run a formula to process and return 2 final scores (score1, score2).
The ASP script to process what is sent from the Flash SWF looks like
var totalscore1 = parseFloat(Request("totalscore1"));
The ASP script to create a return looks like:
Response.Write( "score1=" + score1 + "&score2=" + score2 );
Response.End( );
%>
I'm new to this type of data posting/request, especially how to configure variables that may (?) be sent or return as numbers, not text strings.
totalscore variables are numbers like 30 or 75. How to configure: var variables:URLVariables = new URLVariables();
(not sure what the above ASP script needs: do I send, numbers or text string?)
Return final score variables are likely to be numbers like 2.95 or 1.25. How to receive these numbers back from the ASP page and put them into 2 number variables for use in AS3 scripts.
Any help appreciated.