Load external movies from dynamically created buttonsd

I’m dynamically creating buttons for review to the user. The buttons are determined from test questions that they missed and the missed questions are stored in an array called categories. There can be multiple instances of the same name inside the category array so I’m weeding them out into the holder array so that there is only one occurrence of each category. The problem lies with my onRelease section of the code. All of the buttons and labels are created fine but the buttons don’t do anything! Help please!

stop();

var holder:String;
var holderArray:Array = new Array();
for (i = 1; i < categories.length; i++) {
holder = categories*;
var arrayCount:Number = 0;
for (k = 0; k < holderArray.length; k++) {
if (holder == holderArray[k]) {
arrayCount++;
}
}
if (arrayCount == 0) {
holderArray.push(holder);
}
}

/***************************************************************************/
function makebuttons(){
//if there are buttons, we will remove them first

if(_global.createdClips.length&gt;0){    
    clearbuttons();    
    }
    addbuttons(howmany);

}//end of makebuttons

function addbuttons(howmany) {
//array used to store movieclip information
_global.createdClips = new Array();

for(i=1;i<howmany;i++){
myButton = this.createEmptyMovieClip(“btn”+i,i+20)
myButton.lineStyle(1);
myButton.beginFill(0x007EC3);
myButton.lineTo(20,0);
myButton.lineTo(20,20);
myButton.lineTo(0,20);
myButton.lineTo(0,0);
if((i35+120) > 500) {
this[“btn”+i]._x = 350;
this[“btn”+i]._y = i
35-230;
} else {
this[“btn”+i]._x = 100;
this[“btn”+i]._y = i*35+120;
}
myButton.createTextField(“txt”+i,i+21);
myButton[“txt”+i].text=i;

//push the movieclip information into the array

_global.createdClips.push(myButton);

//=============we create a textfield to store the caption ====================================
myButton.createTextField(“text”+i, 0, 30, 4, 230, 20);
myButton[“text”+i].multiline = false;
myButton[“text”+i].wordWrap = false;
myButton[“text”+i].border = false;
myButton[“text”+i].background = false;
myButton[“text”+i].variable = “”;
myformat = new TextFormat();
myformat.font=“arial”;
myformat.size=“11”;
myformat.color = 0x000000;
myformat.bullet = false;
myformat.underline = false;
myButton[“text”+i].text = topics[holderArray*];
myButton[“text”+i].setTextFormat(myformat);
_global.createdClips.push(myButton);

    //One attempt at the onRelease loading external movies
    /*for (j=1;j&lt;holderArray.length;j++) {
        trace(topics[holderArray[j]]);
        var movie:String = holderArray[j];
        trace(topics[movie]);
        myButton["btn"+j].onRelease = function () {
                
            loadMovie(topics[movie] + ".swf", 100);
                
        }

    }*/

   //Another attempt on dynamically loading external movies
    /*myButton.onRelease = function(){
    var movie:String = new String();
    movie = topics[holderArray*] + ".swf";
    //trace(movie);
    trace(holderArray*);
        loadMovie(movie, 100);
    }*/   

}//end of for loop

}//end of addbuttons

function clearbuttons() {
for(var myButton in _global.createdClips){
_global.createdClips[myButton].removeMovieClip();

//clear the array of movieclip information

_global.createdClips.pop();

}//end of for loop
}//end of clearbuttons

/---------------------------------------------------------------/
var howmany:Number = holderArray.length;

var topics:Array = new Array();
//Creates an array that corresponds with holderArray
//The values are output for users to see and also
//are the same as the external swfs that I want to load
topics["about"] = "About our Company";
topics["schedule"] = "Work Schedule";
topics["overtime"] = "Overtime";
topics["attendance"] = "Attendance";
topics["clockin"] = "Clocking In";
topics["glasses"] = "Safety Glasses";
topics["employeeSafety"] = "Employee Safety";
topics["fireExits"] = "Fire Exits";
topics["dropRule"] = "Knife Drop Rule";
topics["firstaid"] = "First Aid";
topics["drugs"] = "Drug, Tobacco and Alcohol-Free Workplace";
topics["harassment"] = "Harassment";
topics["reviews"] = "Performance Reviews";
topics["advancement"] = "Opportunites for Advancement";
topics["lockers"] = "Lockers";
topics["dresscode"] = "Dress Code";
topics["workstation"] = "Workstation";
topics["board"] = "Bulletin Board";

makebuttons();