# BUTTON not working! WEIRD! :(

**URL:** <https://forum.kirupa.com/t/button-not-working-weird/64715>\
**Category:** Uncategorized\
**Created:** [September 19, 2004, 3:52am UTC](https://forum.kirupa.com/t/button-not-working-weird/64715 "2004-09-19T03:52:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![OM2](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@OM2](https://forum.kirupa.com/u/OM2)\
**Post date:** [September 19, 2004, 3:52am UTC](https://forum.kirupa.com/t/button-not-working-weird/64715/1 "2004-09-19T03:52:08Z")

</div>

I’ve got a really weird one here.  
I have a movie A.  
Inside movie A, I have another movie 3 more movies B, C, D.

B, C, D are all instances of the same movie.  
Inside this movie is a button, given in an instance name of button.

When B, C, D are clicked, they put text inside a text box.  
The actions for this are assigned using frame actions.

The exact action is as given below:

```auto
menuItem1.minusButtonMovie.button.onRelease = function()
  {
      dummyText += "minus";
  }
  
  menuItem1.plusButtonMovie.button.onRelease = function()
  {
      dummyText += "plus";
  }
  
  menuItem1.minusButtonMovie2.button.onRelease = function()
  {
      dummyText += "minus";
  }
  

```

(The real names of the movies are used above.)

The problem is that C, when clicked WILL NOT function.  
If the instance name of C is changed then it will work fine!  
(In the actual example, the movie that’s giving the problem is the one with the instance name of minusButtonMovie.)

Where am I going wrong?

OK… I think all of the above explanations may sound confusing!  
So, I’ve attached the FLA (MX2004 format).

Any help would be appreciated.

Thanks.

OM

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2004, 4:43am UTC](https://forum.kirupa.com/t/button-not-working-weird/64715/2 "2004-09-19T04:43:58Z")

</div>

Works now…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2004, 5:13am UTC](https://forum.kirupa.com/t/button-not-working-weird/64715/3 "2004-09-19T05:13:43Z")

</div>

but… what did u do!  
do tell! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2004, 3:07pm UTC](https://forum.kirupa.com/t/button-not-working-weird/64715/4 "2004-09-19T15:07:07Z")

</div>

You had a button in all the 3 MCs, which wasn’t needed. It was causing some type of a problem.

Instead of adding a button inside your MC you can just as easy target the whole MC, unless you wanted to add some kinda a hotspot around it for a bigger clicking area.

Cheers,  
-Neverrain

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2004, 3:31pm UTC](https://forum.kirupa.com/t/button-not-working-weird/64715/5 "2004-09-19T15:31:32Z")

</div>

i found out what my mistake was.  
i ad two copies of the button on top of each other.  
🙂

thanks for the reply.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 19, 2004, 10:09pm UTC](https://forum.kirupa.com/t/button-not-working-weird/64715/6 "2004-09-19T22:09:09Z")

</div>

Yes, just for reference, you cannot have a button -inside- another button in flash. Same goes for movieclips acting as buttons.
