# Can't control Movie in Button

**URL:** https://forum.kirupa.com/t/cant-control-movie-in-button/11112
**Category:** flash
**Created:** [January 12, 2003, 3:30pm UTC](https://forum.kirupa.com/t/cant-control-movie-in-button/11112 "2003-01-12T15:30:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ghandigu](https://avatars.discourse-cdn.com/v4/letter/g/6a8cbe/32.png) [@Ghandigu](https://forum.kirupa.com/u/Ghandigu)
#### Post date: [January 12, 2003, 3:30pm UTC](https://forum.kirupa.com/t/cant-control-movie-in-button/11112/1 "2003-01-12T15:30:16Z")

</div>

I have a button, which has a MovieClip within.

Parent=Button  
Child=MClip

I have named the MovieClip, but can’t control it within Actionscript.

When I run and List Objects, the name does not come up, instead it has a “instance name”

If I change the Button to a MClip, then I can see and manipulate the enbeded MClip, but the Movie doesn’t work right, so I would like to keep the parent clip as a Button.

Why doesn’t Flash recognize the Instace name of the MClip within the button, and why DOES it recognize the MClip if the Button is changed to a MClip.

thx

---

<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: [January 12, 2003, 3:41pm UTC](https://forum.kirupa.com/t/cant-control-movie-in-button/11112/2 "2003-01-12T15:41:08Z")

</div>

buttons arent movieclips. If you make it a movieclip then it is a movieclip… but only movieclips can have referenceable child movieclips. A movieclip can still exist in a button, but it loses its reference there so you cant actually access it. Theres a work around to this (I posted an example about it [here](http://www.kirupaforum.com/showthread.php?s=&threadid=11885#post83534)) but the low down dirty truth of it all is that you cant really access and manipulate a movie contained within a button. Your best bet is to just make it a movieclip and use it that way. You can add button actions (like onPress and onRelease) to movieclips all the same - you can even tell it to go to frame 2 on rollover to give it a rollover state. Shouldnt be much of a reason why you cant use a movieclip instead.

---

<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: [January 12, 2003, 3:57pm UTC](https://forum.kirupa.com/t/cant-control-movie-in-button/11112/3 "2003-01-12T15:57:00Z")

</div>

Thx senocular

Well you prevented me from spending all day long trying to figure out what I’m doing wrong.

I would change the Button to a MClip, but when i did the object no longer worked (it has a lot of code in it), guess I need to figure out why it doesn’t work as a MClip
