|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a webpage that i am redesigning and have come across a problem.
The page is made up of a "blank" page (main_page.swf) containing empty placeholders into which i am loading previously created SWFs using the loadMovie script. The problem is that one of the loaded SWFs is a menu (menu.swf). on level_1 (slideBackground_mc) of the menu are a series of buttons (eg. main_btn). I am trying to use the buttons to load other external SWFs (main_text.swf, music.swf etc) into a content placeholder (content_mc) in main_page.swf. the script i am using is: main_btn.onRelease = function(){ loadMovie(main_text.swf,_root.content_mc) I understand why this doesn't work, as it refers to the root of menu.swf. how do i get it to refer to content_mc on the root of main_page.swf. I hope this is clear enough for someone to understand and explain to me whether it is possible to do. Many thanks in advance. jmckerchar Last edited by jmckerchar : December 3rd, 2003 at 06:49 AM. |
|
#2
|
|||
|
|||
|
Hi, try:
loadMovie("main_text.swf",_root.content_mc); see if that helps. In all honesty I'm not 100% sure where the target is. My guess is that when you use loadMovie in this way "_root" becomes the main root. i.e. main_page.swf's root. I'm sure when I did something similar ages ago I had to plan out the structure a bit. Each movie on its own has its own root but when you load them into another they become children of that root. there can be only one! ----+ so i think it's alright, try the quotes and let me know how it goes. |
|
#3
|
|||
|
|||
|
that worked.
thanks.
that worked. i tried with a fresh set of SWFs/movieClips and everything worked fine. I think it must have been a problem with my directory structure or something. i'll have to check properly when i get home from work. Thanks again. jmckerchar |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > button on level_1 of attached swf link to mc on root of target swf |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|