Array & Flash problem

Ok…I have solve my array delete problem…but now I am stuck with another problem…

here goes…

I have create my movie as such that on button click…the array will be created and the entry will be inserted then it will dynamically duplicate a movie thats holds a button so that on button click the element in the array and the mc will be remove. The movie is dynamically name as the index of the array.

now is the problem…

I have remove the element from the array but the button name still remains as the initial index value…therefore by using
myarray.splice(_name); I am removing the wrong element in the array!!!

Anybody got a solution to this?

Thanks in advance…