Hi all, I would have thought that the TextInput Text property
would have been a 'hint' and that at runtime it would disappear
onFocus to let the user type. But it doesn't. How do I clear the
Text property when the user selects the TextInput so that they can
begin typing without having to delete my hint please? (I'm creating
AIR, not Flash, if that makes any difference).
You're probably seeing examples where a function named
onFocus is called as the event handler. You could also type
focusIn="onFocus()" and implement an event handler function named
onFocus in a <Script> block. I pretty much always do it that
way, it just seems easier to read and maintain even if there's only
one line of code.