esdebon / in-spirit

Automatically exported from code.google.com/p/in-spirit
0 stars 0 forks source link

Impossible to get server response #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

...
ml.addEventListener(Event.COMPLETE, onLoadComplete);
ml.load(URL);
...

private function onLoadComplete(e:Event):void {
     trace(e.target.data);
}

(It is all ok with the server response (xml) using URLLoader)
This is very necessary feature. 
Mark Ledford (on your blog) said: "I think this class should extend
URLLoader directly so that these things are accessible".

Original issue reported on code.google.com by cpp...@gmail.com on 17 Sep 2009 at 4:40

GoogleCodeExporter commented 8 years ago
u can easily get server response:
private function onLoadComplete(e:Event):void {
     // MultipartURLLoader(e.target.data).loader - here is loader object
     // MultipartURLLoader(e.target.data).dataFormat- here is data format property
}

Original comment by zatepya...@gmail.com on 24 Feb 2010 at 12:54