I have 2 custom components in Flash Builder, A.mxml which contains B.mxml. B has a text input, and every time the text is changed I would like to call a "save()" function on A.
The relevant code in B is:
<fx:Metadata>
[Event(name="customChange", type="flash.events.Event")]
</fx:Metadata>
...
<s:TextInput text="@{value}" valueCommit="{dispatchEvent(new Event(Event.CHANGE))}"/>
I can replace the code in valueCommit="{}"
with a trace statement, and confirm that it's working as expected.
The relevant code in A is:
<widgets:B customChange="{save()}"/>
However save()
is never getting called.
Why is the event not reaching A?