# How to control a MC according to its variable

**URL:** <https://forum.kirupa.com/t/how-to-control-a-mc-according-to-its-variable/195107>\
**Category:** flash\
**Created:** [July 28, 2006, 1:08pm UTC](https://forum.kirupa.com/t/how-to-control-a-mc-according-to-its-variable/195107 "2006-07-28T13:08:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [July 28, 2006, 1:08pm UTC](https://forum.kirupa.com/t/how-to-control-a-mc-according-to-its-variable/195107/1 "2006-07-28T13:08:01Z")

</div>

I have several MCs, each one with a different \_name.

when a Mc is clicked a variable is defined to it. Like:

```auto

on (press){
_root.clicked = this._name;
}

```

Also have a function on the main timeline that will reduz the MCs scale, but not all the other MCs.  
How can I make the function call the Mc according to it´s variable? (just scale the MC with the variable clicked == this.\_name.)

Hope have been clear enough.  
Thanks for any help
