Skip to main content
Known Participant
December 11, 2011
Answered

calling function when specific input text fields are selected

  • December 11, 2011
  • 1 reply
  • 698 views

Hi,

   I have a number of  input text field on stage. I want to call certain function when specific input text fields are selected. Please help

Thanks

This topic has been closed for replies.
Correct answer Rothrock

certainTextField.addEventListener(FocusEvent.FOCUS_IN,handleFocus);

function handleFocus(e:FocusEvent){

          trace(e.target.name);

}

1 reply

RothrockCorrect answer
Inspiring
December 11, 2011

certainTextField.addEventListener(FocusEvent.FOCUS_IN,handleFocus);

function handleFocus(e:FocusEvent){

          trace(e.target.name);

}

Known Participant
December 11, 2011

Hi Rothrock

thank you so much