Here’s one that I couldn’t figure out if my life depended on it: :-\
I’m working on a site with a rather basic structure: The file “main.swf”, which contains the background images etc. will load two external swf’s:
- the primary navigation (nav.swf)
- site content (content01.swf)
nav.swf contains collapsible menus that will cover part of the content (content01.swf) while the user rolls over a primary link - that’s why I decided to load the navigation from an external file (nav.swf) into _level9, so it always “floats” above everything else (content goes into _level1).
content01.swf contains a secondary navigation for the user to navigate the stuff within content01.swf
my problem is now that the collapsible menus are (partially) transparent and, in one case, cover part of the secondary navigation within the content01.swf file.
While putting the site together, I helped myself with a nifty function that hides the secondary navigation in the content area while the primary nav is in roll over state - worked great.
But as soon as I created the external navigation file (nav.swf), it stopped working. The nav.swf file is loaded into an empty movie clip within main.swf like so:
[FONT=courier new][color=003366]onClipEvent (load) {
loadMovieNum(“nav.swf”, 9);
}[/color][/font]
Then (content01 is still on the main timeline, instance name “content01” - havent’ created separate file yet), when the user rolls over the link in question (a button in “nav.swf”), the following function is called
[FONT=courier new][color=003366]on (rollOver) {
_root.content01.hideButtons();
_root.menu.bt60.play(); <- plays an animation (menu fade-out)
}[/color][/font]
Now, as you can see, the function hiding all the secondary buttons “hideButtons()” is contained within the first frame of my “content01” MC - as long as the navigation and the content are on the same timeline, everything works fine - as soon as I load the navigation from an external file, the “hideButtons()” function doesn’t work anymore … hmpft.
As soon as it’s loaded into main.swf, shouldn’t my nav.swf recognize “_root” as the main timeline in main.swf?
I hope I’m making at least some sense here … any tips would be greatly appreciated ,
kubik