A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Form Field inFocus

  1. #1
    Hello,

    I have a form and want the first text entry field to be in focus when the flash movie loads. ie, when the user starts to type in, the cursor is already in the first box.

    Thanks.....Rob

  2. #2
    Senior Member chi-styler's Avatar
    Join Date
    Jul 2001
    Location
    Bristol, UK
    Posts
    1,237
    Hi,

    This should do it

    Selection.setFocus("_root.myVar");

    _root.mVar being the variable of the particular text box

  3. #3
    Senior Member
    Join Date
    Jul 2002
    Location
    California
    Posts
    125

    Tried it, doesn't work for me...

    Yup, I have the same problem. Selection.setFocus sort of works, but not really. The cursor comes up in the right text field, but when you start typing, nothing happens. You still have to click on the field before you can successfully type anything. Arg! Any ideas on why this is? Thanks...

  4. #4
    Junior Member
    Join Date
    Jul 2002
    Posts
    29
    try adding in a Selection.setSelection(0, 0);
    other than that, setFocus works fine for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center