[haXe] haxe.remoting.AsyncConnection bug fix

Danny Wilson danny at decube.net
Tue Jul 3 17:47:05 CEST 2007


Hi Nicolas,

I was scratching my head for a while here. "Why did returned data only  
trigger the onError handler, instead of the onData handler?"
Well today I looked into AsyncConnection.hx and 2 arguments where mixed up:

// Line 62 - 65:
p.unshift(new flash.net.Responder(
	function(e) { me.__error.ref(e); },
	function(r) { onData(r); }
));

// Should be:
p.unshift(new flash.net.Responder(
	function(r) { onData(r); },
	function(e) { me.__error.ref(e); }
));

I don't know about flash version <9. Please check :-)



More information about the Haxe mailing list