I am very new to flex and have trouble capturing the text change event of my text control:
<mx:Text id="description"
text=""
textAlign="center"
fontSize="18"
click="_playSpeech()" />
it’s a click right now but i need it to be something like textChange=”_playSpeech()” so it calls that function every time the text of the of that control changes.
Any help is highly appreciated.
If you are watching changes that the user enters in the textbox itself you should use the class TextArea or TextInput instead of Text. This allows you to listen to changes like this:
If you are changing the text outside the textbox I would recommend you to make a bindable variable or a function that triggers the action you want to happen.