On a state change I have the following snippet:
<mx:State name="oneItem" enterState="displayLastOrder()">
<mx:AddChild>
<comp:OneItemOptions id="myOptions" />
</mx:AddChild>
</mx:State>
in the displayLastOrder() function I have a trace Statement
trace('I am in the enterstate function');
in the OneItemOptions I am calling an init function on
creationComplete. In that function I have another trace statement.
Here is my question, The trace in the displayLastOrder fires BEFORE
the one in the init function. I was under the impression that the
enterState is not executed until the state is complete (and therefore
the child has been instantiated and complete). I am obviously wrong.
Bruce