3 Replies Latest reply on Feb 27, 2012 2:28 PM by jrunrandy

    About the FlexNativeMenu control

    community help Level 1

      This question was posted in response to the following article: http://help.adobe.com/en_US/flex/using/WSacd9bdd0c5c09f4a-690d4877120e8b878b0-7fea.html

        • 1. Re:  About the FlexNativeMenu control
          levancho Level 3

          example about array as dataprovider does not seem to be correct, can Array be bindable?



                      public var objMenuData:Array = [












          • 2. Re:  About the FlexNativeMenu control
            levancho Level 3

            I guess pasting code did not go that well...



            anyway it says :      public var objMenuData:Array

            • 3. Re:  About the FlexNativeMenu control
              jrunrandy Adobe Employee


              Sorry, but I didn't write this and don't know the answer to your questions. However, I asked a developer and here is what he said:


              It works because the example is not using any bindable functionality. It will work the same way even if you remove the [Bindable] tag.


              If you really want to bind to the data source, then you need the following:

              1. Define the var with [Bindable] (which you already did)
              2. Use ArrayCollection instead of Array
              3. Assign the dataProvider using curly braces {} via mxml or by using BindingUtils.bindProperty() of you want to do it in actionscript.


              Hope this helps,

              Randy Nielsen

              Senior Content and Community Manager

              Adobe Systems Incorporated