# gotoAndPlay HELP! with a mc button in a mc button

**URL:** <https://forum.kirupa.com/t/gotoandplay-help-with-a-mc-button-in-a-mc-button/202282>\
**Category:** Uncategorized\
**Created:** [September 29, 2006, 9:37am UTC](https://forum.kirupa.com/t/gotoandplay-help-with-a-mc-button-in-a-mc-button/202282 "2006-09-29T09:37:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![emacksey](https://avatars.discourse-cdn.com/v4/letter/e/43a26b/32.png) [@emacksey](https://forum.kirupa.com/u/emacksey)\
**Post date:** [September 29, 2006, 9:37am UTC](https://forum.kirupa.com/t/gotoandplay-help-with-a-mc-button-in-a-mc-button/202282/1 "2006-09-29T09:37:37Z")

</div>

[URL=“[http://www.kirupa.com/forum/](http://www.kirupa.com/forum/)”]Ok so I’m going crazy with creating a movie clip button inside a movie clip button.

I have it working well for [COLOR=Red]onRollover[/COLOR], but [COLOR=Red]onRollout[/COLOR]  
the Header\_mc looks like it is not looking at the code. It is driving  
me crazy. Here is my Action Script code to control the two movieclip  
buttons.

I basicly want the Header\_mc to stop when over the B\_photo and on  
Rollout of the B\_photo. I don’t know why it is not working.

Any help would be a god send. Thank you.

/_--------------Photographers Button------------_/

this.B\_photo.onRollOver = function() {

```
Header_mc.gotoAndPlay("_stop");

B_photo.gotoAndPlay("_over");

```

}

this.B\_photo.onRollOut = function() {

```
Header_mc.stop("_stop");

B_photo.gotoAndPlay("_out");

```

}

this.B\_photo.onRelease = function() {

```
B_photo.getURL("http://www.macromedia.com", "_parent");

```

}

/_--------------Main Header---------------------_/

this.Header\_mc.onRollOver = function() {

```
Header_mc.gotoAndPlay("_over");

```

}

this.Header\_mc.onRollOut = function() {

```
Header_mc.gotoAndPlay("_out");

```

}

this.Header\_mc.onRelease = function() {

```
Header_mc.gotoAndStop("_out");

```

}
