1 Reply Latest reply on Aug 22, 2006 9:42 AM by Newsgroup_User

    setFocus not working

    Level 7
      I'm just trying out the sample code in flash 8 to give focus to a text
      field, and I've copied the code from the help pages and it simply doesn't
      work!

      When I run the code, there is never one of the text boxes active, until you
      click on a button.

      This is wrong i believe as there is a line of code that says
      Selection.setFocus("username_txt");

      which i think should give focus initially.

      Could anyone clarify please, this is really driving me mad!

      Thanks

      Dave


        • 1. Re: setFocus not working
          Level 7
          It's working now, you have to click on the flash window before it works!

          "dave" <dave@nospam.co.uk> wrote in message
          news:ecf1lc$l3g$1@forums.macromedia.com...
          > I'm just trying out the sample code in flash 8 to give focus to a text
          > field, and I've copied the code from the help pages and it simply doesn't
          > work!
          >
          > When I run the code, there is never one of the text boxes active, until
          > you click on a button.
          >
          > This is wrong i believe as there is a line of code that says
          > Selection.setFocus("username_txt");
          >
          > which i think should give focus initially.
          >
          > Could anyone clarify please, this is really driving me mad!
          >
          > Thanks
          >
          > Dave
          >
          >