Skip to main content
Participant
June 7, 2006
Question

putting cursor in input text field

  • June 7, 2006
  • 2 replies
  • 293 views
I'm trying to put the cursor in an input text field as soon as I get to a certain frame. I'm using Selection.setFocus() but it does not seem to work. It returns true but I still can't see my cursor and I can't type to the field until I click in it or tab to it. Does anyone have any ideas what I'm neglecting to do?
This topic has been closed for replies.

2 replies

2m91_2
Inspiring
June 7, 2006
should work, but there are issues, if you test in the autoring environment, so to be sure test in the browser or executable.
Participant
June 8, 2006
Yes, I did pass the text field to the setFocus call, and I'm testing the swf outside of the Flash dev environment with the same results. Anyone else?
June 7, 2006
mmmm just did that, I don't get the carret, but I can type
just to be pedantic you did pass the TextField instance ie
Selection.setFocus(myTextField )?