I'm trying to make a global function that I can call when someone clicks
a next button that unloads the current movieclip and then loads the next
one based on the name passed to that function. Also, on some clicks (at
the end of each section) I need to enable the next menu option but I'm
unsure of the syntax for that. Here's what things look like.
Global function:
function NextFrame(MCToLoad,NavigationToEnable){
_root.content.MainContent.removeMovieClip();
_root.content.attachMovie(MCToLoad,"MainContent",0);
//THIS IS THE PART I'M HAVING TROUBLE WITH
_root.header.navigation.NavigationToEnable.enabled = true;
}
How do I write the syntax for that so that I just pass in the named
button within the navigation that I want to enable but leave the rest of
the dot syntax as static? My calling function on my button looks like
this:
on(release){
_root.NextFrame("Section2","Diagrams");
}
So, I want on release for the movieclip named Section2 to be loaded into
the main content mc and then the menu option
_root.header.navigation.Diagrams to be enabled. I'm sure I could change
my function to pass in the full dot notation of the button I want to
enable but I wanted to avoid that.
Can anyone help? Thanks!
John Burns
Certified Advanced ColdFusion MX Developer
Wyle Laboratories, Inc. | Web Developer
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com