Storing values using loop

I have five buttons on stage and I simply want to trace “1” when I click the first button and trace “2” when I click the second button and so on.

Here is the code

var buttonsArray:Array = new Array('sil_btn', 'sfl_btn', 'srl_btn', 'srf_btn', 'shpl_btn')
for(var i:Number = 0; i< buttonsArray.length; i++)
{
i = pressed;
this[buttonsArray*].onRelease = function()
{
    trace("buttonNumber"+i)
}
}

I am always getting the last number and cannot figure out, how to store the values.