Following is a simplified version of my mxml:
<s:BorderContainer>
<s:states>
<s:State name="create"/>
<s:State name="edit"/>
</s:states>
<s:transitions>
<s:Transition fromState="create" toState="edit">
<s:Sequence target="{creation}">
<s:Fade/>
<s:RemoveAction/>
</s:Sequence>
</s:Transition>
</s:transitions>
<comp:create includeIn="create"/>
<comp:edit includeIn="edit"/>
</s:BorderContainer>
Within <comp:create includeIn="create"/>
I have a button that once clicked calls: this.parent.currentState='edit'
. But for some reason I get the following error:
"A term is undefined and has no properties..." which points me to the line this.parent.currentState='edit'
. Anyone what's wrong? Thanks.