Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Later
-
Adobe Flex SDK 4.0 (Release)
-
None
-
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.