AS2 loadvars - sends onLoad=[type Function]

Jiri Heitlager <[email protected]> Mon, 22 Oct 2007 17:40:47 +0200
Newsgroups gmane.comp.web.flashcoders.devel
Message-ID <[email protected]>
Hello,

good to see that the list is back and running again!
I have a question about Loadvars object. The following code bellow sends 
all the data nicely to a server, but it also send the loadVars.onLoad 
method. That is on the server this is received:

unit=V&name=Input voltage&value=24&step=0.25&max=35&min=0&onLoad=[type 
Function]

is there someway that I can get ride of this onLoad thing?

Thank you,

Jiri

<code>
	private function sendData():Void
	{
		var req:LoadVars = new LoadVars();
		req.onLoad = Proxy.create( this , onDataReceived , req);
		
		var url:String = $SERVER_ROOT_URL;
		url+='paneltype='+rootVars.paneltype
		url+='&tabnr='+rootVars.tabnr
		url+='&panelnr='+rootVars.panelnr
		url+='&variablenr='+rootVars.variablenr
		url+='&value='+rootVars.value
		url+='&busid='+rootVars.busid

		req.sendAndLoad(url, req , "POST");

	}
</code>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders