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

Unexpected behaviour setting a Window component's visible property before opening.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.4 (Release)
    • None
    • mx: Window
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Other (specify version)
      Language Found: English

    Description

      Steps to reproduce:
      1. Instantiate a Window in Actionscript.
      2. Set the Window's visible property to false.
      3. Call the Window's open() method.
      4. Set the Winow's visible property to true.

      Actual Results:
      The window momentarily opens before closing again.

      The first call to set visible sets the _nativeWindowVisible property to false. The second call to set visible sets the _nativeWindow.visible property to true, causing the window to open (briefly). Shortly after, enterFrameHandler is called, and _nativeWindow.visible is set to the value stored in _nativeWindowVisible (false) causing the window to close again.

      Expected Results:
      The window should obey the latest assignment to the visible property.

      Workaround (if any):
      Don't attempt to set the visible of a Window instance before opening it if you're going to change it to the opposite value soon afterwards. Setting the visibility immediately after calling open(), executing whatever code is necessary and then setting visibility again seems to work fine.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: