Need help with loading swf using loops asap please

[COLOR=#000000][FONT=verdana]Hello all![/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]I’ve been trying to figure this out almost all day now…I’m a total beginner in AS3 so please help if you can. I want to make a menu with 6 buttons and each of them to load a specific swf file. [/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]The problem is that I can only manage to make it so that it loads the final swf file no matter what button I press.[/FONT][/COLOR]
[COLOR=#000000][FONT=verdana]This is the script I have so far:
[/FONT][/COLOR]

[LEFT][COLOR=#993300][FONT=monospace]import[/FONT][/COLOR][COLOR=#000000][FONT=monospace] fl.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]containers[/FONT][/COLOR][COLOR=#000000][FONT=monospace].[/FONT][/COLOR][COLOR=#000000][FONT=monospace]UILoader
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]import[/FONT][/COLOR][COLOR=#000000][FONT=monospace] flash.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]net[/FONT][/COLOR][COLOR=#000000][FONT=monospace].[/FONT][/COLOR][COLOR=#000000][FONT=monospace]URLRequest[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]import[/FONT][/COLOR][COLOR=#000000][FONT=monospace] flash.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]display[/FONT][/COLOR][COLOR=#000000][FONT=monospace].[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]import[/FONT][/COLOR][COLOR=#000000][FONT=monospace] flash.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]text[/FONT][/COLOR][COLOR=#000000][FONT=monospace].[/FONT][/COLOR][COLOR=#993300][FONT=monospace]TextField[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]import[/FONT][/COLOR][COLOR=#000000][FONT=monospace] flash.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]events[/FONT][/COLOR][COLOR=#000000][FONT=monospace].[/FONT][/COLOR][COLOR=#000000][FONT=monospace]MouseEvent[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]import[/FONT][/COLOR][COLOR=#000000][FONT=monospace] flashx.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]textLayout[/FONT][/COLOR][COLOR=#000000][FONT=monospace].[/FONT][/COLOR][COLOR=#993300][FONT=monospace]accessibility[/FONT][/COLOR][COLOR=#000000][FONT=monospace].[/FONT][/COLOR][COLOR=#000000][FONT=monospace]TextAccImpl[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#F000F0][FONT=monospace]*
//Declaring Variables
*[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] swfFolder:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]String[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]String[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"swf/"[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] swfLoader:UILoader = swfLoaderMc;
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] swfArray:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]Array[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]Array[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"1.swf"[/FONT][/COLOR][COLOR=#000000][FONT=monospace], [/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"2.swf"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"3.swf"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"4.swf"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"5.swf"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"6.swf"[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] i:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]int[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]int[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]0[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] j:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]int[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]int[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]0[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btn0:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnMc0;
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btn1:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnMc1;
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btn2:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnMc2;
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btn3:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnMc3;
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btn4:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnMc4;
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btn5:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnMc5;
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btnArray:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]Array[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]Array[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]btn0, btn1, btn2, btn3, btn4, btn5[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btnTxtArray = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#993300][FONT=monospace]Array[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"ball"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],                            
[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"ballc"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],                            
[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"dice"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],                           
[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"img"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],                            
[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"slide"[/FONT][/COLOR][COLOR=#000000][FONT=monospace],                           
[/FONT][/COLOR][COLOR=#0000FF][FONT=monospace]"quizz"[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#F000F0][FONT=monospace]*
//Init
*[/FONT][/COLOR][COLOR=#993300][FONT=monospace]
for[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]i = [/FONT][/COLOR][COLOR=#000000][FONT=monospace]0[/FONT][/COLOR][COLOR=#000000][FONT=monospace]; i < btnArray.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]length[/FONT][/COLOR][COLOR=#000000][FONT=monospace]; i++[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace]{
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btnMc:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnArray[/FONT][/COLOR][COLOR=#000000][FONT=monospace][[/FONT][/COLOR][COLOR=#000000][FONT=monospace]i[/FONT][/COLOR][COLOR=#000000][FONT=monospace]][/FONT][/COLOR][COLOR=#000000][FONT=monospace];        
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] btnTxt:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]TextField[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnMc.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]txt[/FONT][/COLOR][COLOR=#000000][FONT=monospace];        
btnTxt.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]text[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = btnTxtArray[/FONT][/COLOR][COLOR=#000000][FONT=monospace][[/FONT][/COLOR][COLOR=#000000][FONT=monospace]i[/FONT][/COLOR][COLOR=#000000][FONT=monospace]][/FONT][/COLOR][COLOR=#000000][FONT=monospace];    
[/FONT][/COLOR][COLOR=#000000][FONT=monospace]}
[/FONT][/COLOR][COLOR=#F000F0][FONT=monospace]*
//Events
*[/FONT][/COLOR][COLOR=#993300][FONT=monospace]for[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]i = [/FONT][/COLOR][COLOR=#000000][FONT=monospace]0[/FONT][/COLOR][COLOR=#000000][FONT=monospace]; i < btnArray.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]length[/FONT][/COLOR][COLOR=#000000][FONT=monospace]; i++[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace]{[/FONT][/COLOR][COLOR=#000000][FONT=monospace]   
 btnMc = btnArray[/FONT][/COLOR][COLOR=#000000][FONT=monospace][[/FONT][/COLOR][COLOR=#000000][FONT=monospace]i[/FONT][/COLOR][COLOR=#000000][FONT=monospace]][/FONT][/COLOR][COLOR=#000000][FONT=monospace];    btnMc.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]addEventListener[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]MouseEvent.[/FONT][/COLOR][COLOR=#000000][FONT=monospace]MOUSE_DOWN[/FONT][/COLOR][COLOR=#000000][FONT=monospace],pressFunction[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];
[/FONT][/COLOR][COLOR=#000000][FONT=monospace]}
[/FONT][/COLOR][COLOR=#F000F0][FONT=monospace]*
//EventHandlers
*[/FONT][/COLOR][COLOR=#993300][FONT=monospace]
function[/FONT][/COLOR][COLOR=#000000][FONT=monospace] pressFunction[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#993300][FONT=monospace]e[/FONT][/COLOR][COLOR=#000000][FONT=monospace]:MouseEvent[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace]{[/FONT][/COLOR][COLOR=#000000][FONT=monospace]   
 loadSwf[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];[/FONT][/COLOR][COLOR=#000000][FONT=monospace]}
[/FONT][/COLOR][COLOR=#F000F0][FONT=monospace]*
//Functions
*[/FONT][/COLOR][COLOR=#993300][FONT=monospace]
function[/FONT][/COLOR][COLOR=#000000][FONT=monospace] loadSwf[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace]{
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]for[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]i = [/FONT][/COLOR][COLOR=#000000][FONT=monospace]0[/FONT][/COLOR][COLOR=#000000][FONT=monospace]; i < btnArray.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]length[/FONT][/COLOR][COLOR=#000000][FONT=monospace]; i++[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace]{[/FONT][/COLOR][COLOR=#000000][FONT=monospace]        
btnMc = btnArray[/FONT][/COLOR][COLOR=#000000][FONT=monospace][[/FONT][/COLOR][COLOR=#000000][FONT=monospace]i[/FONT][/COLOR][COLOR=#000000][FONT=monospace]][/FONT][/COLOR][COLOR=#000000][FONT=monospace];        
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] swf:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]String[/FONT][/COLOR][COLOR=#000000][FONT=monospace] = swfArray[/FONT][/COLOR][COLOR=#000000][FONT=monospace][[/FONT][/COLOR][COLOR=#000000][FONT=monospace]i[/FONT][/COLOR][COLOR=#000000][FONT=monospace]][/FONT][/COLOR][COLOR=#000000][FONT=monospace];        
[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] swfRequest:URLRequest = [/FONT][/COLOR][COLOR=#993300][FONT=monospace]new[/FONT][/COLOR][COLOR=#000000][FONT=monospace] URLRequest[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]swfFolder + swf[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];        swfLoader.[/FONT][/COLOR][COLOR=#993300][FONT=monospace]load[/FONT][/COLOR][COLOR=#000000][FONT=monospace]([/FONT][/COLOR][COLOR=#000000][FONT=monospace]swfRequest[/FONT][/COLOR][COLOR=#000000][FONT=monospace])[/FONT][/COLOR][COLOR=#000000][FONT=monospace];           
 [/FONT][/COLOR][COLOR=#000000][FONT=monospace]}[/FONT][/COLOR][COLOR=#000000][FONT=monospace]}[/FONT][/COLOR][/LEFT]

[COLOR=#000000][FONT=verdana]
[/FONT][/COLOR]