Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.4 (Release)
-
None
-
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.