Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-13587

Simple FlexNativeMenu causes a runtime error

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • mx: FlexNativeMenu
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Build the bugfile in AIR.
      2. Launch the AIR application which only has a FlexNativeMenu bound to an XML Dataprovider.

      Actual Results: runtime error -
      RangeError: Error #2006: The supplied index is out of bounds.
      at Error$/throwError()
      at flash.display::NativeMenuItem/set mnemonicIndex()
      at mx.controls::FlexNativeMenu/insertMenuItem()[E:\dev\flex\sdk\frameworks\projects\airframework\src\mx\controls\FlexNativeMenu.as:1176]
      at mx.controls::FlexNativeMenu/populateMenu()[E:\dev\flex\sdk\frameworks\projects\airframework\src\mx\controls\FlexNativeMenu.as:1116]
      at mx.controls::FlexNativeMenu/commitProperties()[E:\dev\flex\sdk\frameworks\projects\airframework\src\mx\controls\FlexNativeMenu.as:1069]
      at mx.controls::FlexNativeMenu/validateProperties()[E:\dev\flex\sdk\frameworks\projects\airframework\src\mx\controls\FlexNativeMenu.as:959]
      at mx.managers::LayoutManager/validateProperties()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:519]
      at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:639]
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8452]
      at mx.core::UIComponent/callLaterDispatcher()[E:\dev\flex\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8395]

      Expected Results: no runtime error

      Workaround (if any):

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment