Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > UIComponent class > UIComponent.getFocus() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
componentInstance.getFocus();
None.
A reference to the object that currently has focus.
Method; returns a reference to the object that has keyboard focus.
The following code returns a reference to the object that has focus and assigns it to the tmp variable:
var tmp = checkbox.getFocus();
Flash CS3