Control a swf from another swf

Hy,
I don’t speak wery well english. I hope you understand me. =)

My problem:

I load swf2 in swf1.
In swf2 is placed a menu. When I press a button from swf2 I want to tell swf1 to GoAndPlay frame x.

Please help me. :hangover:

In the frame that you want the .swf1 to load into .swf2 put :


loadmovie("swf1.swf", "_root.yourplaceholderMCnamehere");

In your first frame of your swf1:


stop ();

In your button’s actions :


on (release) {
_root.yourplaceholderMCnamehere.gotoAndPlay ("frameName");
}

and that should work. After looking at that, I have also uploaded a .zip file with everything in it.

Glad to help.

:-\
In the archive you put insert.swf & main.swf.
Insert.swf is loaded in main.swf.
I wanna control main.swf from insert.swf.

4 example

When I click a button in insert.swf; main.swf play frame x.

I hope you understand now what I want exactly.

Ok, then in that case, just make your button :



_root.gotoAndPlay ("framename");


or


_parent.gotoAndPlay ("framename");

hopethat helps