Make externally loaded images clickable

Hi all,

I’ve created an empty movieclip (imgHolder) dynamically on my stage and through XML I’ve loaded a picture into this movieclip which works fine.
However, if I click on the picture, nothing happens.

This is what I scripted so far…


xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = function(loaded) {
    if(loaded) {
        parseXML();
        trace("the xml is loaded successfully!");
    } else {
        trace("something went wrong; error: " + this.status);
    }
}
xmlData.load("http://www.arkeacties.nl/xml/web6-mainbanners.xml");

function parseXML() {
    var themaNodes:Array = xmlData.firstChild.childNodes;
    for(i=0; i<themaNodes.length; i++) {
        var tabNodes:Array = themaNodes*.childNodes;
        
        createEmptyMovieClip("imgholder", getNextHighestDepth());
        imgholder.loadMovie(tabNodes[0].childNodes[0].attributes.beeld);
        imgholder._x = 0;
        imgholder._y = 0;
        imgholder.onPress = function() {
            trace("the image has been rolled over");    // this won't work
        }
    }
}

Any help would be appreciated.