# Multiple buttons +multiple (but same...)functions

**URL:** <https://forum.kirupa.com/t/multiple-buttons-multiple-but-same-functions/305828>\
**Category:** Uncategorized\
**Created:** [March 4, 2010, 6:55am UTC](https://forum.kirupa.com/t/multiple-buttons-multiple-but-same-functions/305828 "2010-03-04T06:55:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hpja](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@hpja](https://forum.kirupa.com/u/hpja)\
**Post date:** [March 4, 2010, 6:55am UTC](https://forum.kirupa.com/t/multiple-buttons-multiple-but-same-functions/305828/1 "2010-03-04T06:55:24Z")

</div>

I have 48 buttons, they have instansname btn1, btn2, btn3 etc…  
than I have 48 movieclip that are named mc1, mc2, mc3 etc…

if you click on “btn1” I want “mc1” to be visible  
if you click on “btn2” I want “mc2” to be visible etc…

what is the best way to do that in ActionScript 3.0??

Thanks…
