View Full Version : SetFocus - blinking cursor

09-30-2002, 07:59 AM
If there anyone know how to solve the problem:

Flashmovie can't get information of your keyboard if you don't click the flashmovie first!

For Example: I've a flashmovie with SetFocus. The Cursor is blinking, but I can't type anything without touching the flashmovie first!

Give me only a answer if you know the answer! Thanks!

09-30-2002, 09:00 AM

10-01-2002, 07:32 AM
I've got the solution!

Thanks anyway!

10-01-2002, 07:40 AM
so, would u mind sharing the solution with us if it's different

10-01-2002, 07:54 AM
It's not different I quess!

You need this:
1. Give the textField a name
2. Selection.setFocus("textFieldsname");

3. onLoad="flash_movie.focus()" (body tag)
4. id=textFieldsname (embed tag)

I've tested with I.E.6 - OS WindowsXP. It's works fine. I've asked people to tested it on the other platforms and browsers. So, I'm verry optimistic about it.

If Internet Explorer and Netscape Explorer do support this javascript, I'm going to use it!