event = new LoaderEvent(LoaderEvent.LOAD_ERROR, _uri, isDependency, event.message);
while recreating the event to throw to external listener, this line overwrites the correct asset URL with the URL of the main document file. This leaves the external listener unable to know exactly which dependency asset threw an error while loading.
Is there any reason for this behaviour?
I think this should be:
event = new LoaderEvent(LoaderEvent.LOAD_ERROR, event.url, isDependency, event.message);
In https://github.com/away3d/away3d-core-fp11/blob/dev/src/away3d/loaders/AssetLoader.as line 492:
while recreating the event to throw to external listener, this line overwrites the correct asset URL with the URL of the main document file. This leaves the external listener unable to know exactly which dependency asset threw an error while loading.
Is there any reason for this behaviour?
I think this should be: