# Passing an instance name through a function

**URL:** <https://forum.kirupa.com/t/passing-an-instance-name-through-a-function/331554>\
**Category:** flash\
**Created:** [August 27, 2013, 2:20pm UTC](https://forum.kirupa.com/t/passing-an-instance-name-through-a-function/331554 "2013-08-27T14:20:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iglota](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@iglota](https://forum.kirupa.com/u/iglota)\
**Post date:** [August 27, 2013, 2:20pm UTC](https://forum.kirupa.com/t/passing-an-instance-name-through-a-function/331554/1 "2013-08-27T14:20:39Z")

</div>

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.
