Assigning instance names with actionscript

Hi Guys,

I am working with a number of movieclips and I was wondering if there was an easy method using actionscript to assign them instance names instead of doing it manually for each movieclip.

I am not very familiar with actionscript but I think there should be something like this. Thanks guys!