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

The Application's controlBar property is null if the ApplicationControlBar is not docked.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Later
    • Adobe Flex SDK 4.0 (Release)
    • None
    • mx: Application
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Run the code below. Note that the ApplicationControlBar is not docked.

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

      <mx:Button label="Get controlBar" click="txt1.text = application.controlBar.toString()" />
      <mx:Text id="txt1" />

      <mx:ApplicationControlBar id="acb1" dock="false" />

      </mx:Application>
      Actual Results:

      Expected Results:
      When you click the button, an RTE occurs because "application.controlBar" is null. If you change the dock property to true, then the "application.controlBar" is correctly set.

      Workaround (if any):
      Setting dock to true isn't a workaround, because the use may not want it to be docked.

      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