Skip to main content
Inspiring
August 22, 2006
Question

setFocus not working

  • August 22, 2006
  • 1 reply
  • 117 views
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


This topic has been closed for replies.

1 reply

Inspiring
August 22, 2006
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
>
>