# Nested buttons not talking to main timeline

**URL:** <https://forum.kirupa.com/t/nested-buttons-not-talking-to-main-timeline/65537>\
**Category:** Uncategorized\
**Created:** [September 27, 2004, 2:14pm UTC](https://forum.kirupa.com/t/nested-buttons-not-talking-to-main-timeline/65537 "2004-09-27T14:14:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wjc78](https://avatars.discourse-cdn.com/v4/letter/w/22d042/32.png) [@wjc78](https://forum.kirupa.com/u/wjc78)\
**Post date:** [September 27, 2004, 2:14pm UTC](https://forum.kirupa.com/t/nested-buttons-not-talking-to-main-timeline/65537/1 "2004-09-27T14:14:58Z")

</div>

Can anyone tell me why this code is not working? Basically I am trying to get buttons that I have in a drop down menu load an external .swf into an empty movie clip placed on the main timeline. However for some reason it is not working. The buttons are contained in a movie called “menuItems” which is then placed in a movieclip called “mainMenu” which is then placed on the main timeline.

on (release) {  
\_parent.gotoAndPlay(“reverse”);  
if (\_root.\_root.\_root.currMovie == undefined) {  
\_root.\_root.\_root.currMovie = “personalData”;  
container.loadMovie(“personalData.swf”);  
} else if (\_root.\_root.\_root.currMovie != “personalData”) {  
if (container.\_currentframe \>= container.midframe) {  
\_root.\_root.\_root.currMovie = “personalData”;  
container.play();  
}  
}  
}

---

<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 27, 2004, 4:28pm UTC](https://forum.kirupa.com/t/nested-buttons-not-talking-to-main-timeline/65537/2 "2004-09-27T16:28:40Z")

</div>

```auto

on (release) {
_parent.gotoAndPlay("reverse");
if (_root._root._root.currMovie == undefined) {
_root._root._root.currMovie = "personalData";
**_root.** container.loadMovie("personalData.swf");
} else if (_root._root._root.currMovie != "personalData") {
if (container._currentframe >= container.midframe) {
_root._root._root.currMovie = "personalData";
**_root.** container.play();
}
}
}

```

if i understood your post correctly, you say your container clip is on the main timeline (\_root) if it is, you have to address it at such.

post again if im wrongo.

---

<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 27, 2004, 5:31pm UTC](https://forum.kirupa.com/t/nested-buttons-not-talking-to-main-timeline/65537/3 "2004-09-27T17:31:56Z")

</div>

Thanks, so much maximum flash that worked great, that has been driving me crazy.

> [@maximum\_flash](#):
>
> ```auto
> 
> on (release) {
> _parent.gotoAndPlay("reverse");
> if (_root._root._root.currMovie == undefined) {
> _root._root._root.currMovie = "personalData";
> **_root.** container.loadMovie("personalData.swf");
> } else if (_root._root._root.currMovie != "personalData") {
> if (container._currentframe >= container.midframe) {
> _root._root._root.currMovie = "personalData";
> **_root.** container.play();
> }
> }
> }
> 
> ```
> 
> if i understood your post correctly, you say your container clip is on the main timeline (\_root) if it is, you have to address it at such.
> 
> post again if im wrongo.

---

<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 27, 2004, 5:35pm UTC](https://forum.kirupa.com/t/nested-buttons-not-talking-to-main-timeline/65537/4 "2004-09-27T17:35:13Z")

</div>

woot woot.

no prob.
