# Mc inside another mc problem

**URL:** https://forum.kirupa.com/t/mc-inside-another-mc-problem/21535
**Category:** Uncategorized
**Created:** [May 22, 2003, 6:53pm UTC](https://forum.kirupa.com/t/mc-inside-another-mc-problem/21535 "2003-05-22T18:53:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dr\_ew](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@dr\_ew](https://forum.kirupa.com/u/dr_ew)
#### Post date: [May 22, 2003, 6:53pm UTC](https://forum.kirupa.com/t/mc-inside-another-mc-problem/21535/1 "2003-05-22T18:53:11Z")

</div>

Hi,

I have an infinite menu of thumbs that when pressed call up the larger image in another mc…  
on the thumbs:  
on (release) {  
\_root.view.gotoAndplay(“img1”);  
}  
(view is the clip that holds the larger images.)

this works when i preview it on its own, but when i try to call it into a container clip from a main movie:  
on (release) {  
\_root.contents.loadMovie(“portf.swf”);  
}

It wont bring up the larger images… (but the scroller still works.)

I thought maybe all i had to do was change \_root to \_parent on the thumbs in the scroller, but that didnt work.  
Anyone know why it wont work, and how I could fix it?

Also, the scroller behaves very differently when its called from the main movie than on its own…Is fixing this just simply changing the ycenter in the infinite menu script?

Thanks 🙂

---

<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: [May 22, 2003, 8:36pm UTC](https://forum.kirupa.com/t/mc-inside-another-mc-problem/21535/2 "2003-05-22T20:36:27Z")

</div>

\_root brings you to the first timeline of the heirarchy. When you load a movie into a main movie, the \_root timeline is then the \_root timeline of the main movie.

Therefore your targetting is wrong. You should use \_parent, or “this”. I recommend practicing the use of using \_parent and “this” to locate things, it saves this kind of stress 😉

[http://www.kirupa.com/developer/actionscript/tricks/root\_parent\_this.asp](http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.asp)

---

<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: [May 23, 2003, 3:09am UTC](https://forum.kirupa.com/t/mc-inside-another-mc-problem/21535/3 "2003-05-23T03:09:31Z")

</div>

thanks! it was a path problem… got it working now =]  
\_root.contents.view.goto… just missed a step in the path.
