I've seen loadMovie used in similiar ways on this board, but not from one .swf
to another. I have a main.swf. I load two additional .swf's into main, one
called navigation.swf (which holds the navigation buttons) and content.swf. I
want to use loadMovie from the navigation.swf to change the content.swf.
If I add a button to the main.swf, I can change the content.swf with
services_btn.onRelease= function(){
content_mc.loadMovie("services.swf");
}
Now, if I put that button into the navigation.swf, no luck. Does the services
button needs to reference the main.swf in order for the loadMovie to change the
content.swf?? At least thats what I'm thinking, but haven't seen it done this
way.
Any tips?
thanks, motleyfool
tralfaz - 31 Dec 2005 20:46 GMT
> I've seen loadMovie used in similiar ways on this board, but not
> from one .swf
[quoted text clipped - 17 lines]
> done this
> way.
For this arrangement..
_level0.content_mc
_level0.nav_mc
Code inside of content_mc can't reference nav_mc directly and vice
versa.
You need to go back one position with _parent or _root or _level0..
_parent.content_mc.loadMovie("services.swf");
or
_root.content_mc.loadMovie("services.swf");
or
_level0.content_mc.loadMovie("services.swf");
tralfaz
motleyfool - 31 Dec 2005 23:52 GMT
I had _root in the wrong place. Thanks.