Ok, Let me give you brief overview, Actually the current behaviour of prompt is when textinput has Focus, it hides the prompt.
Now i have change this behaviour. Even when textinput has Focus , it will show the prompt. Only when user starts type in prompt is invisible. I have successfully implemented that by listening focus events and getCurrentSkinState. However,when i try to listen for key based Events, and try to set promptDisplay.Visible = true/False its giving compiler error. Saying cannot set visible prompt on instance of IEditableText. On Fri, Jun 21, 2013 at 1:09 PM, Malek S <[email protected]> wrote: > Hi, > > I want to listen for keyBoardEvents for spark textinput. > > something like this > > * > > protected > * > > *function* keyDownEvent( event:KeyboardEvent ):*void* > * * > > { > > promptDisplay.visible= > > *false*; > > *var* _txtEmty:Boolean = *super*.textField.text.length == 0; > > *if*(_txtEmty && event.keyCode != 229) > > promptDisplay.visible= > > *true*; > > } > > > > But i am getting compiler error on promptDisplay.Visible > > > > basically promptDisplay does not support this property. anyother > suggestions are welcome > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/flex_india. For more options, visit https://groups.google.com/groups/opt_out.

