Arlo-

You are the man! Thank you very much. I knew it was something simple I
just couldn't remember for the life of me. It's been one of those days.
Thank you for your help! 


John Burns
Certified Advanced ColdFusion MX Developer
Wyle Laboratories, Inc. | Web Developer
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arlo
Jamrog
Sent: Monday, June 12, 2006 3:11 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Unsure of syntax

Hi John,

I believe it's:

_root.header.navigation[NavigationToEnable].enabled = true;



On Jun 12, 2006, at 11:58 AM, Burns, John D wrote:

> 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

_______________________________________________
[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
_______________________________________________
[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

Reply via email to