onError callback each time a resource loading is failed, the loader will fire the specified function giving the actual asset as argument.
undefined Copy
undefined
loader
since 18.2.0 - Use the event.LOADER_ERROR event instead.
// use the LOADER_ERROR event insteadme.event.on(me.event.LOADER_ERROR, (resource) => this.loaderError(resource)); Copy
// use the LOADER_ERROR event insteadme.event.on(me.event.LOADER_ERROR, (resource) => this.loaderError(resource));
onError callback
each time a resource loading is failed, the loader will fire the specified function giving the actual asset as argument.