Search  

TEXTFIELD FOCUS

HomeForumsFlash DiscussionTextField Focus
41382 Nythe
121 posts
Sold between 100 and 1 000 dollars

I am having a problem with the TextField.setFocus property. I made a simple test movie with a text field called “txt”. I used the following code in frame 1 of the layer:

txt.onSetFocus = function() {
      trace("set")
}
txt.onKillFocus = function() {
      trace("lost")
}

This works fine. However, for some reason, when i drag any built-in component like the ComboBox, or MenuBar, there is a problem. Whenever, i click away from the text field, the focus immediately returns to it and i can never remove the focus from the text field. Is there something wrong with the components?

Posted about 1 month ago