onRelease for a dynamic Movieclip

I have created many buttons dynamically.
Now how do I write the onRelease for the same?