[Flash] XML language selector using locale Flash var

Hello to you. I’m creating an XML driven language selector which places the current language’s flag (depending on the user’s locale which is passed through a Flash Var parameter) at the top of the list. I’ve got all this working so far BUT i’m having trouble with the results. I want to be able to add onRollOver and onRelease functions to the newly created movieclips but it just ain’t happening! The onRollOver function would be a bit of movement for each flag and the onRelease would call getURL using the url for that language which is contained in the XML file. Please could you brilliant people have look and tell me how it’s done. Thankyou muchly.

sideFeather.swapDepths(10000);
var x = new XML();
x.ignoreWhite = true;
var lNames = new Array();
var images = new Array();
var urls = new Array();
x.onLoad = function() {
    var flags = this.firstChild.childNodes;
    for (i=0; i<flags.length; i++) {
        lNames.push(flags*.attributes.lName);
        images.push(flags*.attributes.image);
        urls.push(flags*.attributes.link);
        if (lNames* == locale) {
            createEmptyMovieClip("feather"+i, i);
            featherName = eval("feather"+i);
            featherName.loadMovie("feather.gif");
            createEmptyMovieClip("flag"+lNames*, i+500);
            instanceName = eval("flag"+lNames*);
            instanceName.loadMovie(images*);
            featherName._x = -7.5;
            instanceName._x = -2.5;
            featherName._y = 1;
            instanceName._y = 6.5;
            current = i;
        } else {
            createEmptyMovieClip("feather"+i, i);
            featherName = eval("feather"+i);
            featherName.loadMovie("feather.gif");
            createEmptyMovieClip("flag"+lNames*, i+500);
            instanceName = eval("flag"+lNames*);
            instanceName.loadMovie(images*);
            featherName._x = -7.5;
            instanceName._x = -2.5;
            if(i>current) {
            featherName._y = 1.0 + (39*i);
            instanceName._y = 6.5 + (39*i);
            } else {
                featherName._y = 40.5 + (39*i);
                instanceName._y = 45.5 + (39*i);
            }
        }
    }
};
x.load("languages.xml");