wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

PromptingTextInput fails when using mx:Binding #192

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the included app.  Type one character into the text input field and 
click on the button.  Notice the label is blank.  Type another character 
and again click the button.

What is the expected output? What do you see instead?
The problem is the <mx:Binding...> ends up getting the CHANGE event prior 
to the PromptingTextInput getting it, therefore, _textEmpty is still true 
and the component returns an empty string rather than the value in the 
textField.

What version of the product are you using? On what operating system?
flexlib version .24, Mac 10.5, Windows XP

Please provide any additional information below.
I changed the constructor by increasing the priority of the CHANGE handler 
like so:
addEventListener( Event.CHANGE, handleChange, false, int.MAX_VALUE, true );
addEventListener( FocusEvent.FOCUS_IN, handleFocusIn, false, 0, true );
addEventListener( FocusEvent.FOCUS_OUT, handleFocusOut, false, 0, true );

This seemed to solve the probelem.

Original issue reported on code.google.com by nicho...@adobe.com on 27 Jan 2009 at 4:07

GoogleCodeExporter commented 8 years ago

Original comment by olarivain@gmail.com on 29 Mar 2010 at 1:29