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 and run the attatched app Gumbo app
2. notice the order of events in the FxTextArea control
3.
Actual Results:
- For the container's initialize event, the doc used to say this:
"Flex dispatches the initialize event for a container after it attaches all the container's direct child controls and the container's initially required children have dispatched a preinitialize event."
But I am seeing preinitialize and initialize dispatched on a container before its children dispatch preinitialize or initialize.
Here is the structure of the test app:
FxApplication
OuterGroup
InnerGroup1
InnerLabel1
InnerGroup2
InnerLabel2
And here are how the events are dispatched:
OuterFxContainer preinitialize
OuterFxContainer contentCreationComplete
OuterFxContainer initialize
InnerFxContainer1 preinitialize
InnerFxContainer1 initialize
InnerFxContainer2 preinitialize
InnerFxContainer2 initialize
InnerLabel1 preinitialize
InnerLabel1 initialize
InnerLabel2 preinitialize
InnerLabel2 initialize
InnerLabel1 creationComplete
InnerLabel2 creationComplete
InnerFxContainer1 creationComplete
InnerFxContainer2 creationComplete
OuterFxContainer creationComplete
Here is what I expect:
OuterFxContainer preinitialize
InnerFxContainer1 preinitialize
InnerLabel1 preinitialize
InnerLabel1 initialize
InnerFxContainer1 initialize
InnerFxContainer2 preinitialize
InnerLabel2 preinitialize
InnerLabel2 initialize
InnerFxContainer2 initialize
OuterFxContainer initialize
InnerLabel1 creationComplete
InnerLabel2 creationComplete
InnerFxContainer1 creationComplete
InnerFxContainer2 creationComplete
OuterFxContainer creationComplete