placing cursor in text field using AS3

Copy link to clipboard
Copied
I am a newbie to actionscript 3.0 and need a litlle help that I have not been able to find searching (for two weeks).
I would like the cursor to appear and blink in the first text field in a movie clip that gathers information to be sent to a php. The following does not work.
stage.focus = textField;
textField.setSelection(textField.text.length,textF ield.text.length);
And the only other things I find are for custom cursors. I just want the visitor to see the blinking cursor in the firstName_txt input box when the page appearss.
Also, if the visitor tabs from one input text field to the other, the blinking cursor appears in the first three input text fields but not in the fourth. Yet, the visitor can enter text in the fourth input text field.
Copy link to clipboard
Copied
disable keyboard shortcuts if you're testing in the flash test environment.

Copy link to clipboard
Copied
I may be missing something, but, first, what shortcuts and how do I disable them? Second, I stopped a Keyboard shortcuts program I use and the cursor still does not appear in the first input box.
Copy link to clipboard
Copied
where are you testing? in your browser or the flash test environment or somewhere else?

Copy link to clipboard
Copied
I have tested by clicking crtl+enter and uploaded the files to my isp for testing. Neither effort is successful.
BTW, thanks for helping and I am sorry about the cross posting. My bad. I didn't realize there was a section for actionscript at the time.
Copy link to clipboard
Copied
what's your url and does anything need to be clicked to test your online input textfield?

Copy link to clipboard
Copied
the URL: www.shawvo.com/Learning/JackIndex14.html Click on the contact button.
Copy link to clipboard
Copied
i see no problem. my cursor appears in the first name field.

Copy link to clipboard
Copied
That is truly bizarre, because I have tried 1 desktop and 2 laptops in both IE and Firefox on each and have yet to have it work for me. I assume you are saying you see the blinking cursor in the "First name" input box. How can there be such a difference?
Copy link to clipboard
Copied
maybe you have some other software on your computers causing the problem.

