# Root problems when loading into MC

**URL:** <https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306>\
**Category:** Uncategorized\
**Created:** [December 9, 2002, 2:24pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306 "2002-12-09T14:24:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://forum.kirupa.com/u/Dave)\
**Post date:** [December 9, 2002, 2:24pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306/1 "2002-12-09T14:24:42Z")

</div>

Hey Guys!

Im loading an external swf into an empty MC in the main movie.

This external swf has navigation in it. When i press a button for example :

on (release) {  
tellTarget ("\_root") {  
gotoAndPlay(30);  
}  
}

it works fine when i test the movie, but soon as i hit the same button once it has loaded into the main movie into the empty MC  
ive realised it goes to fram 30 of the main movie, and not of the external swf!!

Is there a way i can avoid that from happening, i dnt want to load into diffrent levels either!!

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:** [December 9, 2002, 2:36pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306/2 "2002-12-09T14:36:08Z")

</div>

on (release) {  
tellTarget ("\_root") {  
gotoAndPlay( 30 ) ;  
}  
}

thats the code on the buttons, though it has just been spaced out so the picture wont appear like above!!

🙂

---

<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:** [December 9, 2002, 3:03pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306/3 "2002-12-09T15:03:08Z")

</div>

That is not working because \_root is now the \_root of the main movie!  
To fix this you could make it  
tellTarget("\_root.mymovie.myloadedmovie") {  
gotoAndPlay(##);  
} if you like  
but it should work like this too:  
tellTarget("\_parent") {};  
just replace \_root.with \_Parent.  
But I never use tellTarget! If I want to play a movieclip I just use  
\_root.mymovie.mymovieclip.mymovieclip2.play();  
A lot easier

---

<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:** [December 9, 2002, 3:29pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306/4 "2002-12-09T15:29:06Z")

</div>

Thanks i tried the parent thing and it worked on one of the buttons. But when i used it on another button it didnt work.

The first button tells it to go a frame on the main time line.  
On that frame is a movie. The movie plays, now there is another button inside that movie that i want it to go back to the main timeline.

This is the code on the butt:

on (release) {  
tellTarget ("\_parent") {  
gotoAndPlay(20);  
}  
}

but when i hit that it still goes and plays frame 20 of the main movie, not within the external swf!!

I have an fla, if it will help u understand!

:-\

---

<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:** [December 9, 2002, 3:45pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306/5 "2002-12-09T15:45:58Z")

</div>

post your fla here so I can take a look and help you better.

=)

---

<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:** [December 9, 2002, 4:28pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306/6 "2002-12-09T16:28:32Z")

</div>

Thanks Syko i got that stuff working!! 🙂

Guig0

Hey!! I cant post the flas at the moment coz they are to big even when i zip them up, so ill change them and then i will send them to you!! Ill send them 2morrow though coz its like 3.30 am and my eyes cant take it no morreeee!!

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:** [December 9, 2002, 4:36pm UTC](https://forum.kirupa.com/t/root-problems-when-loading-into-mc/9306/7 "2002-12-09T16:36:43Z")

</div>

If I understand you correctly, in your previous post you said that Syko has helped you, and the thing is working now.

I only asked to you to post it here to help you, but if you are still having problems post it here, so Syko, me and the other guys can help you.

Cheers =)
