# Need to change path to container movieclip

**URL:** <https://forum.kirupa.com/t/need-to-change-path-to-container-movieclip/263984>\
**Category:** Uncategorized\
**Created:** [June 21, 2008, 12:43pm UTC](https://forum.kirupa.com/t/need-to-change-path-to-container-movieclip/263984 "2008-06-21T12:43:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [June 21, 2008, 12:43pm UTC](https://forum.kirupa.com/t/need-to-change-path-to-container-movieclip/263984/1 "2008-06-21T12:43:56Z")

</div>

[SIZE=2][FONT=Verdana]Hi guys,

I’ve been going through the [Transitions Between External SWF](http://www.kirupa.com/forum/../developer/mx2004/transitions2.htm) tutorials and all is going well except I wish to situate my buttons in a movieclip and not on the main timeline as the tutorial teaches. [/FONT]

[/SIZE][FONT=Verdana][SIZE=2][SIZE=2]The tutorial does point out; ‘If your buttons are not located on the main timeline, you will have to change the path to the container movieclip. If your buttons are not on the main timeline, you must change container to the appropriate path.’

Does anyone know how I’d do that to the below code? (for some reason the code tags were messing up so I’ve just copy and pasted.)

[/SIZE][/SIZE][/FONT]on (release) {

if (\_root.currMovie == undefined) {  
\_root.currMovie = “main”;  
container.loadMovie(“main.swf”);  
} else if (\_root.currMovie != “main”) {  
if (container.\_currentframe \>= container.midframe) {  
\_root.currMovie = “main”;  
container.play();  
}  
}

}

If anyone can point out what I need to alter - THANK YOU in advance!

:nerd:

---

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [June 21, 2008, 7:43pm UTC](https://forum.kirupa.com/t/need-to-change-path-to-container-movieclip/263984/2 "2008-06-21T19:43:47Z")

</div>

Now now people, lets not all reply at once, you’ll crash the forum…

😜

---

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [June 21, 2008, 10:13pm UTC](https://forum.kirupa.com/t/need-to-change-path-to-container-movieclip/263984/3 "2008-06-21T22:13:11Z")

</div>

err im assuming \_root.container all that.

---

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [June 22, 2008, 2:59pm UTC](https://forum.kirupa.com/t/need-to-change-path-to-container-movieclip/263984/4 "2008-06-22T14:59:34Z")

</div>

Thanks for replying GeeString.

I resolved the problem by using this.parent.

---

<div class="post-metadata">

**Author:** ![fulci](https://avatars.discourse-cdn.com/v4/letter/f/5f9b8f/32.png) [@fulci](https://forum.kirupa.com/u/fulci)\
**Post date:** [June 23, 2008, 10:36pm UTC](https://forum.kirupa.com/t/need-to-change-path-to-container-movieclip/263984/5 "2008-06-23T22:36:21Z")

</div>

Many thanks Kurosevic! 🙂
