Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > UIComponent class > UIComponent.setFocus() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
componentInstance.setFocus();
None.
Nothing.
Method; sets the focus to this component instance. The instance with focus receives all keyboard input.
The following code gives focus to the checkbox instance:
checkbox.setFocus();
Flash CS3