I faced a problem with Assets.loadLibrary() with the handler function definition like this:
function onLibLoaded(a:AssetLibrary):Void
I get a following error:
src/com/creativemage/libLoader/LibraryLoader.hx:29: characters 35-46 : a : openfl.AssetLibrary -> Void should be lime._Assets.LimeAssetLibrary -> Void
How should I rewrite my code to work consistently across all platforms?
Perhaps we should not be returning the library in the callback. I’m not sure. Basically this happened because now Lime has Assets, OpenFL extends the Lime asset system instead of defining it on it’s own. If you do not use the returned library instance (I’m guessing you do not?) then using an underscore to ignore the parameter should always work