Mc inside another mc problem

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 :slight_smile:

_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 :wink:

http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.asp

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