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

NavBar : enable property enables all buttons, event the current view's one

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.2 (Release)
    • None
    • MXML Components
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      on the navbar, the current view's button is disabled.

      set enable=false on the navbar everything is disabled

      set enabled = false on the navbar
      and all your buttons are enabled even the current.

      suggested correction in NavBar.as line 227 :

      override public function set enabled(value:Boolean):void
      {
      if (value != enabled)
      {
      super.enabled = value;

      var n:int = numChildren;
      for (var i:int = 0; i < n; i++)
      {
      if (targetStack)

      { Button(getChildAt(i)).enabled = value && // fixed here targetStack.currentIndex != i && // end of fix Container(targetStack.getChildAt(i)).enabled; }

      else

      { Button(getChildAt(i)).enabled = value; }

      }
      }
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: