Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / December 2005



Tip: Looking for answers? Try searching our database.

loadMovie from one .swf to another .swf

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
motleyfool - 31 Dec 2005 20:19 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.