It's been a couple years since I've had a problem with Flex/AIR. Now I've run out of ideas. I have a spark:TextInput within a component that is shown, inside another component, and all else works withing the component that is shown. However, the textinput field displays no text when I type. It gets the focus, there's no restrict on the textInput field and there are no keyStroke traps in the component. I'm totally baffled. Anyone run into this and have suggestions? Obviously something I'm overlooking that I've done, since hundreds of other textInput fields in the application work fine. I've tried turning editable on and enabled on. No difference regardless of the combinations.
Oh, here's the complicated script:
<s:TextInput id = "reportTitle"
y = "18"
left = "119"
right = "27"
color = "#000000"
prompt = "Title for HTML Report" />
You sure it isn’t losing focus? What is the component it is in? There are some rules about the focusEnabled and has focusableChildren properties when you bury a focusable component inside another component that isn’t a container.
It's inside an s:Panel. The radioButtons inside the panel work fine. If I catch a keyDown event, it logs in the console fine. It's almost as if it's backspacing to wipe out the characters. Alex, you da man. What up with this? OK, not your problem, but I'm still confused. Nothing is overlaying the textInput field. The cursor is blinking inside the field. And keyDown events are trapped fine. I would suggest that someone check to make sure their text color isn't white, but it's not and the cursor never moves off 0 position. Either it's a very cool bug that's never been reported before (hard to believe) or there's an interaction I'm not looking for, which I should.
I appreciate your help, but I gave up and went another direction (PopupManager for the component) and it works fine. Sometimes it's just best to rethink the approach instead of having to understand every little problem.