Dynamically create addEventListener

I have a problem working on the “addEventListener” class:

I dynamically created some MovieClips and gave them the name of ‘mhandler0’; ‘mhandler1’;… also created others with the name ‘mselect0’; ‘mselect1’;…

The problem is that I don’t know how to create also dynamically those MC’s event listeners.

Can anyone help me please!.. I’m so delayed (my deadline is tomorrow :crying: )

( the code above explains, I think, what I need… )

[FONT=“Courier New”]
for (var f=0; f<9; f++) {
[“mhandler”+f]addEventListener(MouseEvent.CLICK, mhandlerfunction);
[“mselect”+f]addEventListener(MouseEvent.CLICK, mselectfunction);