Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder Stooshie's Avatar
    Join Date
    Mar 2008
    Location
    Dundee, Scotland
    Posts
    378
    Thanks
    9
    Thanked 39 Times in 39 Posts

    Question Air: FlexNativeMenu: disable entire menu

    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.
    Regards, Stooshie
    O

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    You can set the dataProvider to null, effectively disabling it. Then reset it when you want to be able to use the menu again.

  • #3
    Regular Coder Stooshie's Avatar
    Join Date
    Mar 2008
    Location
    Dundee, Scotland
    Posts
    378
    Thanks
    9
    Thanked 39 Times in 39 Posts
    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.
    Regards, Stooshie
    O


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •