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

NavBar crashes when children (tabs) are re-parented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Adobe Flex SDK 3.2 (Release)
    • None
    • mx: Tab Navigator
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 6.x
      Language Found: English

    Description

      Steps to repro:
      1) compile and run attached MXML file (main.mxml) or run main.swf.
      2) click the "move tab one" button to reparent tab one to the second TabNavigator container.
      3) click the Button control in tab one (which should be in the second (lower) TabNavigator.

      Actual results:
      RTE...
      ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
      at flash.display::DisplayObjectContainer/getChildIndex()
      at mx.core::Container/getChildIndex()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2407]
      at mx.controls::NavBar/enabledChangedHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\NavBar.as:1207]
      at flash.events::EventDispatcher/dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
      at mx.core::UIComponent/set enabled()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:2013]
      at mx.core::Container/set enabled()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:635]
      at main/___main_Button3_click()[C:\Documents and Settings\pdehaan\My Documents\Flex Builder 3 FXG 6\SDK-18754\src\main.mxml:11]

      Expected results
      No RTE

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: