edcesar / flexlib

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

PromptingTextArea isn't extending TextArea properly, clearing text fails, typing returns null #329

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create two components, one a TextArea and one a PromptingTextArea (PTA)
2. Attach a keydown listener to each having them call a checkKey method
3. if checkKey method, accept the e.currentTarget as type TextArea
4. trace the PromptingTextArea, PromptingTextArea breaks returning null
5. set up two checkKey methods, one for TextArea and one for PromptingTextArea
6. set the currentTarget in the checkKey method for PromptingTextArea to type 
as PromptingTextArea
7. the text property for PromptingTextA is now accessible
8. if you modify the checkKey method for PTA to watch for keycode 15 (ENTER 
key), then have the PTA set it's text property to '', it will trace as empty 
but visually wont update to be empty

What is the expected output? What do you see instead?
- See Above
- Both should behave the same in this respect

What version of the product are you using? On what operating system?
flexlib - 2.5 - flex4
on: Adobe Flash Builder 4
Windows 7
FireFox 3.6.10

Original issue reported on code.google.com by michaelh...@gmail.com on 16 Sep 2010 at 7:44