PDA

View Full Version : Selection.setFocus("instancename");


Rocha
09-09-2004, 04:11 AM
Dear friends,

I'm a web developer (ASP), but a beginner in flash...
I will like make a setfocus for a text field in a flash form... I've used the instruction bellow:
Selection.setFocus("instancename"); (where "instancename" is instance name for a text field)
But, when I've opened flash form in Internet Browser the text field haven't focus... because?

Thank you and I'm sorry by my poor english.

ROCHA
from Brazil

hangalot
09-09-2004, 09:58 AM
hi, and welcome to the forum.

when opening your browser does the activeX control (the flash movie have focus), when u click on the movie, focus should goto ur textbox.

Nattefrost
09-10-2004, 02:48 PM
Some times it helps if you put the complet path.

Selection.setFocus("_root.instancename");