How make Connect button with movieclip in array [red, yellow, green];

this my code :

[COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] [/FONT][/COLOR][COLOR=#993300][FONT=monospace]array[/FONT][/COLOR][COLOR=#000000][FONT=monospace]:Array = [/FONT][/COLOR][COLOR=#000000][FONT=monospace][[/FONT][/COLOR][COLOR=#000000][FONT=monospace]red, yellow, green[/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] prev:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace];[/FONT][/COLOR][COLOR=#993300][FONT=monospace]var[/FONT][/COLOR][COLOR=#000000][FONT=monospace] curr:[/FONT][/COLOR][COLOR=#993300][FONT=monospace]MovieClip[/FONT][/COLOR][COLOR=#000000][FONT=monospace];

//and i wanna make connect 3 button [/FONT][/COLOR](Accelerator for Green, Brake for Red Clutch for Yellow )

somebody can help me ???

tank