How do i detect the file that a loader has just completed?
I wish to load a series of small files, and am using the loader functions
url = "image"+index+".png";
var request:URLRequest = new URLRequest(url);
and then an event handler
however, i am firing of a number of these load requests, and do not want to assume they will be complete in the order they were triggered, so I want a way of detecting which load has just been completed, can this be deduced from the even (url field was blank).
I had an attempt with a custom event handler, but am unsure how to make it trigger on load completion.
Check the Loader.loaderInfo.url
That should give you the url of the image
hmm, I am trying to get that from the on completion event, as I do not know the order in which events will complete.
The debugger says the url associated with the event (both target and curretTarget) is NULL and the LoaderUrl points to the main app swf object.
I simply want to be able to interigate the loadCompleted event, to determine which load completed.