# Duplicate MC's with btn inside problem

**URL:** <https://forum.kirupa.com/t/duplicate-mcs-with-btn-inside-problem/130636>\
**Category:** Uncategorized\
**Created:** [December 7, 2004, 1:39am UTC](https://forum.kirupa.com/t/duplicate-mcs-with-btn-inside-problem/130636 "2004-12-07T01:39:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandman9](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sandman9](https://forum.kirupa.com/u/Sandman9)\
**Post date:** [December 7, 2004, 1:39am UTC](https://forum.kirupa.com/t/duplicate-mcs-with-btn-inside-problem/130636/1 "2004-12-07T01:39:25Z")

</div>

I have a MC that has a BTN inside. I duplicated this MC 20 times. So when I put actionscript on the button inside the MC it takes effect on all 20 MC’s. This is a problem because each MC is suppose to load a different jpg on release. Although I needed to duplicated these MC’s b/c they have a nice rollover effect which i have to use on all of them.

So what I tried to fix this was giving each MC it’s own instance name and then on the main timeline going “btn1.onRelease = …”. The problem with this is that the rollover effect on the button stops working. The rollover effect was happening because the btn inside the MC has a animation in it’s "over"state. But that is not being read with I put that above script on my main timeline.

Anyone had this problem before or know of a solution?

Sandman9
