RE: [flexcoders] Re: Disabling a nested menu item in a menu bar?

2006-08-23 Thread Deepa Subramaniam
: [flexcoders] Re: Disabling a nested menu item in a menu bar?   Sadly, thats where the problems started for me. I'm able to get at the top level items, using getMenuAt or even using the menuItems array, but sadly, i cant seem to get a handle on the first child menu var myMenu:Me

[flexcoders] Re: Disabling a nested menu item in a menu bar?

2006-08-21 Thread Tim Hoff
I see what you mean Jeff. There used to be a getMenuItemAt() function (myMenu.getMenuAt(0).getMenuItemAt(1).enabled = false), but it looks like it has been depreciated. Sorry for wasting your time. You can always modify the enabled attributes in the dataProvider, after the xml has loaded. J

[flexcoders] Re: Disabling a nested menu item in a menu bar?

2006-08-21 Thread jeff tapper
Sadly, thats where the problems started for me. I'm able to get at the top level items, using getMenuAt or even using the menuItems array, but sadly, i cant seem to get a handle on the first child menu var myMenu:MenuBar = myMenuBar; var nextLevel:* = myMenu.getMenuAt(0); // throws error Prope

[flexcoders] Re: Disabling a nested menu item in a menu bar?

2006-08-21 Thread Tim Hoff
Bummer - sorry, Probably need to look at MenuBar.getMenuAt(index). -TH --- In flexcoders@yahoogroups.com, "jeff tapper" <[EMAIL PROTECTED]> wrote: > > unfortunately not, its populated dynamically at run time. Any other > ideas on how to address a nested child of the menu? > > --- In flexco

[flexcoders] Re: Disabling a nested menu item in a menu bar?

2006-08-21 Thread jeff tapper
unfortunately not, its populated dynamically at run time. Any other ideas on how to address a nested child of the menu? --- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote: > > > Hi Jeff, > > You can handle this with binding. Something like this: > > > > >

[flexcoders] Re: Disabling a nested menu item in a menu bar?

2006-08-21 Thread Tim Hoff
Hi Jeff, You can handle this with binding. Something like this: model.FileMenuEnabledFlags is an array of Boolean values. -TH --- In flexcoders@yahoogroups.com, "jeff tapper" <[EMAIL PROTECTED]> wrote: > > Anyone have a clue how to disable a menu bar item, when it is not