Root problems when loading into MC

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

:-\

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!!

:slight_smile:

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

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!

:-\

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

=)

Thanks Syko i got that stuff working!! :slight_smile:

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

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 =)