FrancisBourre / lowra

Automatically exported from code.google.com/p/lowra

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DisplayLoaderInfo missing callBack & methods of application loader file not called

GoogleCodeExporter opened this issue · comments

There's no "startCallback" in DisplayLoaderInfo which would allow 
DefaultDisplayObjectBuilder to add a listener  on Event onLoadStart with a 
callback method passed through <application-loader> node.

Anyway, callbacks are still not assigned in onDisplayLoaderInit method on 
DefaultDisplayObjectBuilder.

They can be set manually by adding this kind of code to the 
onDisplayLoaderInit method : 

var mc : MovieClip = ( e.getLoader() as GraphicLoader ).getView() as 
MovieClip;

if (displayLoaderInfo.progressCallback) 
this.addEventListener(DisplayObjectBuilderEvent.onLoadProgressEVENT, mc
[displayLoaderInfo.progressCallback]);

if (displayLoaderInfo.initCallback)
this.addEventListener(DisplayObjectBuilderEvent.onLoadInitEVENT, mc
[displayLoaderInfo.initCallback]);


Original issue reported on code.google.com by Bab...@gmail.com on 25 Apr 2008 at 8:55

Hi,

Fix with new r500 loading implementation.

Cheers.

Original comment by romain.ecarnot on 26 Jan 2009 at 5:15

  • Changed state: Fixed