UIComponent.getFocus()

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

componentInstance.getFocus();

Parameters

None.

Returns

A reference to the object that currently has focus.

Description

Method; returns a reference to the object that has keyboard focus.

Example

The following code returns a reference to the object that has focus and assigns it to the tmp variable:

var tmp = checkbox.getFocus();