AS3 -For Loop Problems With Buttons

Hi,

I’m trying to add event listeners to 80 buttons and I do not want to do this one by one so I tried to put it in a For loop but keep getting this error:

[COLOR=Red]Error #1006: value is not a function.[/COLOR]

Here Is My Code:


function showMatte(num){
    // do something with the returned "num"
}

for (i=1; i<80; i++){
    var me = "m" + i;
    trace(me)
    me.addEventListener(MouseEvent.CLICK,changeMatte); // doesn't get past this point
    function changeMatte(ev:MouseEvent):void{
        trace(i);
        showMatte(i);
    }
    i++;
}

Any help or references would be appreciated.

Thanks