Hi all,
I am loading a variety of stuff through the LoaderMax that is added to its queue via queue.append().
Now when the loaderComplete event triggers, naturally I have the data but I want to be able know to what loader in the queue the data belongs to.
I know you can set a name in vars like that for example for an image loader.
queue.append(new ImageLoader(fileToLoad, {name:"photo1", estimatedBytes:2400, container:this, alpha:1}))
When I debug I do find the name of the loader photo1 under the event at event.target.content[0].name.
However this doesnt work for the DataLoader when I load text (haven't tried binary or variables as I don't need it yet). I just get the text string, but no name reference. Meaning I have no idea if I load several files using the DataLoader , what loader is associated with it inside of the LoaderMax queue.
How can I reference back to the loader via name?
I have several dozens of things to load, from images, sounds and text. The reason I want to do that so I can implement a callback system to pass the data back to the place where the load request came from to use the data at the right place.
Thanks
Lev