Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please, important: load variables from a server

Status
Not open for further replies.

luigiida

Programmer
Mar 26, 2003
29
IT
Hi,
I'm trying to read some variables sent by a server.

The input is of this kind:
&var1=123&var2=13&var3=14353&var1=1233&var2=1243&var3=1253

How can I do it in actionscript??
I tried the following code but it doesn't work.

Thank you very much



someListener = new Object();
someListener.onMouseDown = function () {

outputdati = new LoadVars ();
outputdati.onLoad = function (success){
vett1 = [];
i=0;
for (var i in outputdati)
{

text+=i.var1; //text is dinamic textbox

//text += "|"+i +":"+outputdati+"|";
i++;

}

}
outputdati.sendAndLoad ("};
Mouse.addListener(someListener);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top