Hello,
Let's say I have an application with several states: s1, s2, ..., sn
and this app has a child component that dispatches several events: e1, e2, ..., em
.
I would like to define event handlers in MXML, conditional on the state of the app:
<mx:Application >
<mx:states>
<s:State name="s1">
<s:State name="s2">
</mx:states>
<mx:MyComponent id="mystuff"
e1.s1="handler_1_1(event)" e1.s2="handler_1_2(event)"
e2.s1="handler_2_1(event)" />
</mx:Application>
I have worked with the new state syntax for style and other attributes and it works great.
When I try to define handlers this way, I get a "Error #1069: Property not found"
exception.
Any ideas?
Many thanks, Dan