all groups > flash actionscript > december 2005 >
You're in the

flash actionscript

group:

loadMovie from one .swf to another .swf


Re: loadMovie from one .swf to another .swf tralfaz
12/31/2005 12:46:50 PM
flash actionscript:
[quoted text, click to view]

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








loadMovie from one .swf to another .swf motleyfool
12/31/2005 8:19:18 PM
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
Re: loadMovie from one .swf to another .swf motleyfool
12/31/2005 11:52:04 PM
AddThis Social Bookmark Button