Loader Instance with Custom Properties

Hi,

Through searching the various forums I have found that Loaders are not dynamic and hence you can not apply custom properties to each instance of them. I miss the old way (as2 way of attachingMovieClip) that you load dynamic content, at least you can apply custom properties, and you can always reference them for each object.

What I’m trying to do is load a group of Images via XML. Each one of those images have a set of information that is associated with them (name, description, etc). I have the images loading in and positioning just fine, however when trying to have a tooltip show the name on Mouse Over, I’m not able to achieve this…

In short. I want to be able to store information for each item so that I can access it. Is there a way to do this in AS3 with a Loader or is there another route I can go? If I do this with Arrays, how do I store the Index of the specific item so I can use that in reference to the position in each array?

Thanks for any help.

** Should I use getChildIndex() in the function for the Event Listener to reference the data stored in the arrays for each item? If so, how do I do so? ***


num = 0;
var titleArray:new Array();

function createImage(){
    var thumb:Loader = new Loader;
    thumb.load(new URLRequest(url);
    thumb.name = "thumb_" + num;
    titleArray.push("thumbtitle");

    container.addChild(thumb);


    thumb.addEventListener(MouseEvent.MOUSE_OVER,showTip);
}

function showTip(e:MouseEvent){
    // Get Index of Child and Value from Title Array
    titleArray[container.getChildIndex(e.currentTarget)]; // Doesn't Work, doesn't retreive index.
}