tohokuaikiのチラシの裏

技術的ネタとか。

URLLoaderのEventが創出される順番


http://livedocs.adobe.com/flex/3_jp/langref/flash/net/URLLoader.html

URLLoaderのコンストラクタ

addEventListener(Event.COMPLETE, function(e:Event):void{Log.puts(e.type)});
addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, function(e:Event):void{Log.puts(e.type)});
addEventListener(HTTPStatusEvent.HTTP_STATUS, function(e:Event):void{Log.puts(e.type)});
addEventListener(Event.OPEN, function(e:Event):void{Log.puts(e.type)});
addEventListener(ProgressEvent.PROGRESS, function(e:Event):void{Log.puts(e.type)});

ってしてみた。


04:47:41 PM [TRACE],open
04:47:41 PM [TRACE],httpResponseStatus
04:47:41 PM [TRACE],progress
04:47:41 PM [TRACE],httpStatus
04:47:41 PM [TRACE],complete

だった。