Passing an instance name through a function

Hi, folks!

I have a slider on the stage which controls a movieclip’s rotation. The thing is that I want bring more movieclips from library and I want to choose which one is the active to be rotated by this function, so I need a way switch the movieclip’s name inside this function to be able to rotate other movies on the stage, one at time.

Any clue?

tks everyone.