hi pozirk,
Iāve been wasting my morning trying to restore the same functionality as NMEPreloader, without NMEPreloader, and have so far only managed to get some of the functionality back for flash targets. (not html).
in my project.xml i have ā¦
<app preloader="MyPreloader" />
and iāve added unique listeners to MyPreloader, as follows
Lib.current.loaderInfo.addEventListener (openfl.events.Event.COMPLETE, loaderInfo_onComplete);
Lib.current.loaderInfo.addEventListener (openfl.events.Event.INIT, loaderInfo_onInit);
Lib.current.loaderInfo.addEventListener (ProgressEvent.PROGRESS, loaderInfo_onProgress);
you can then check Lib.current.loaderInfo.bytesLoaded , and Lib.current.loaderInfo.bytesTotal to find out load progress (in flash, these come back as null in html weirdly, havenāt figure out how to restore any preloading within html yet).
Unfortunatly using this method youāll also have no control over when your Main entry point is launched, unlike the NMEpreloader method which waited until you dispatched an Event.COMPLETE .
If anyone else has a working preloader for flash and html which can show simply load progress and give the developer control over when the Main entry point is launched, please do share !