I have found a problem with the spark TextInput component.
If the TextInput displayAsPassword variable is set to true and the user places a string of characters into the component but then highlights the whole string of characters and pastes a shorter string of characters in, the shorter string of characters only replaces the amount of characters that the pasted string has and maintains the rest of the characters of the longer string.
For example, if I put "firstname.lastname@example.org" into the TextInput, highlight the entire string, then paste "blah" into the TextInput, it would appear that I have four characters within the component. However, when I trace out what is in the TextInput I get "email@example.com". The paste has only replaced the first four characters of the original string!!
I have included some simple code so that you can check this for yourself. If you follow the example above and then press the "Check" button the Alert box will tell you what is actually in the TextInput field:
<?xml version="1.0" encoding="utf-8"?>
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<s:HGroup width="100%" horizontalAlign="center">