Form.currentFocusedForm

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

mx.screens.Form.currentFocusedForm

Description

Property (read-only); returns the Form object that contains the global current focus. The actual focus may be on the form itself, or on a movie clip, text object, or component inside that form. May be null if there is no current focus.

Example

The following code, attached to a button (not shown), displays the name of the form with the current focus.

trace("The form with the current focus is: " + mx.screens.Form.currentFocusedForm);