# Child MCs in Buttons

**URL:** <https://forum.kirupa.com/t/child-mcs-in-buttons/272148>\
**Category:** flash\
**Created:** [October 2, 2008, 1:39pm UTC](https://forum.kirupa.com/t/child-mcs-in-buttons/272148 "2008-10-02T13:39:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NRutman](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nrutman/32/2062_2.png) [@NRutman](https://forum.kirupa.com/u/NRutman)\
**Post date:** [October 2, 2008, 1:39pm UTC](https://forum.kirupa.com/t/child-mcs-in-buttons/272148/1 "2008-10-02T13:39:57Z")

</div>

Hello. I’m building a play/pause button for my movie, and here’s how I have it setup:

[LIST=1]  
[_]The main button object is playPause\_btn  
[_]The first layer of the button has a movie clip with the pause graphic, named pause\_mc  
[_]The second layer of the button has a movie clip with the play graphic, called play\_mc  
[_]On the button’s click event, I want to set one of the graphics to 0 alpha and the other to 100 depending on the state, so only one graphic will show through  
[/LIST]

The problem is, for some reason ActionScript returns UNDEFINED when I try to reference playPause\_btn.play\_mc – and when I do a dump of the movie’s objects, I see entries for \_level0.playPause\_btn.instance12 and \_level0.playPause\_btn.instance13 instead of the play\_mc and pause\_mc objects. Why aren’t the objects’ instance names accessible??

Any ideas?

Thanks,  
-Nate
