...

Air: FlexNativeMenu: disable entire menu

Stooshie
09-07-2010, 01:02 PM
Hi there,

Is there a way to disable an entire FlexNativeMenu in an AIR application?

I don't want to go through each item disabling them as which items are disabled/enabled will depend on the current user/what files are open etc...

Being able to do this would be really useful.

Thanks.

Inigoesdr
09-09-2010, 02:11 AM
You can set the dataProvider to null, effectively disabling it. Then reset it when you want to be able to use the menu again.

Stooshie
09-09-2010, 04:52 PM
Thanks for that.

That worked but the menu stayed there and kind of hung.

I found it worked better if I created menu xml with a root tag and the same base menu options but set to enabled="false" it worked better. I think that must be something to do with the application redrawing, or not, if the dataProvider is null.

Thanks again.

Andrew.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum