Enable/Disable MenuItems before Display

2018-07-14 Thread Tucsonjhall
I must not be approaching this common task correctly. I have a native menu on an AIR application and want to determine which subitems should be enabled before displaying. I have yet to fall upon a way to capture an event when, let's say, the File menu is clicked but before the menuitems under it ar

Re: Enable/Disable MenuItems before Display

2018-07-14 Thread Frost, Andrew
I think you want to listen for the “preparing” event: https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/NativeMenu.html#event:preparing (Not sure the bookmark works on that link so you may just need to scroll down to very nearly the bottom of the page to see the eve

Re: Enable/Disable MenuItems before Display

2018-07-14 Thread Javier Guerrero García
Can't you just bind the enabled property of your nativemenuitems to whatever expression gives you the availability of the item, no matter if it's shown or not, so you are sure it's always in the correct state? https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Native

Re: Enable/Disable MenuItems before Display

2018-07-15 Thread Microsftcompany Award compensa
On Sat, 7/14/18, Javier Guerrero García wrote: Subject: Re: Enable/Disable MenuItems before Display To: "users" Date: Saturday, July 14, 2018, 12:15 PM Can't you just bind the enabled property of your nativemenuitems to whatever expression gives you the availability of the

Re: Enable/Disable MenuItems before Display

2018-07-15 Thread Microsftcompany Award compensa
On Sat, 7/14/18, Frost, Andrew wrote: Subject: Re: Enable/Disable MenuItems before Display To: "users@flex.apache.org" Date: Saturday, July 14, 2018, 11:58 AM I think you want to listen for the “preparing” event: https://help.adobe.com/en_US/FlashPlatform/reference/actionscri

Re: Enable/Disable MenuItems before Display

2018-07-15 Thread Microsftcompany Award compensa
On Sat, 7/14/18, Tucsonjhall wrote: Subject: Enable/Disable MenuItems before Display To: users@flex.apache.org Date: Saturday, July 14, 2018, 7:00 AM I must not be approaching this common task correctly. I have a native menu on an AIR application and want to determine which subitems should