DisplayLoaderInfo missing callBack & methods of application loader file not called
GoogleCodeExporter opened this issue · comments
Google Code Exporter commented
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
Google Code Exporter commented
Hi,
Fix with new r500 loading implementation.
Cheers.
Original comment by romain.ecarnot
on 26 Jan 2009 at 5:15
- Changed state: Fixed