Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile attached mxml.
2. Run the app.
3. Click on the ADMIN button
4. Click on BUYER button
5. Again Click on the ADMIN button
Actual Results:
After step #3:
The link bar shows the "General Maintenance" link but the two panels and the link for "Common codes" are not displayed.
The panel and the additional link show after step #5.
Expected Results:
The panels and additional link should be displayed the first time the ADMIN state was selected.
Workaround:
Give the NavigatorContent an id so that the states infrastructure can detect when it's initially created (via data binding event).
This occurs because at the time the Panel is created, the ViewStack has yet to be created, so the AddItems override must wait until the NavigatorContent is available. It does this by listening to the 'slot' representing the NavigatorContent but in this case the compiler hasn't make the implicit NavigatorContent slot [Bindable] (it does by default if you give it an id).