Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextInput change event doesnt fire when changing text programmatically

Status
Not open for further replies.

StuckInTheMiddle

Programmer
Mar 3, 2002
269
US
I'm still fairly new to Flex and event handling so hoping someone has come across a solution for this.

I have a following Flex 3 textinput

Code:
<mx:TextInput id="myName"  text="" change="stateChanged(event)" />

Which works fine when a user makes a change stateChanged event fires and is captured (i do some validation in there as the user types).

However myName.Text can also be updated via Code

Code:
myName.text = "something";

This doesnt fire the event I want to fire, is there a way to capture text changes that the application is doing as well as user edits?

Any assitance appreciated, I check the other events on the textinput, textarea and am open to using another control is it supports what i need.

A/


"If you can stay calm, while all around you is chaos...then you probably haven't completely understood the seriousness of the situation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top