Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

placing cursor in text field using AS3

Guest
Dec 28, 2010 Dec 28, 2010

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.

TOPICS
ActionScript
4.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 28, 2010 Dec 28, 2010

disable keyboard shortcuts if you're testing in the flash test environment.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 29, 2010 Dec 29, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 29, 2010 Dec 29, 2010

where are you testing?   in your browser or the flash test environment or somewhere else?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 29, 2010 Dec 29, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 29, 2010 Dec 29, 2010

what's your url and does anything need to be clicked to test your online input textfield?


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 29, 2010 Dec 29, 2010

the URL: www.shawvo.com/Learning/JackIndex14.html  Click on the contact button.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 29, 2010 Dec 29, 2010

i see no problem.  my cursor appears in the first name field.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 29, 2010 Dec 29, 2010

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 29, 2010 Dec 29, 2010
LATEST

maybe you have some other software on your computers causing the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines