Widget.close()

Availability

Flash Player 7 + TheSpringBox V1

Usage

Widget.close() : Void;

Parameters

None.

Returns

Nothing.

Description

Method; closes the window in which the widget resides.

Note: This function is only needed if the window needs to be closed based on some functionality in the code. The widget wrapper already contains a close button in the utility navigation that the user has access to.

Example

In the below example, a button is used to close the widget window:

btnClose.onRelease = function() {
  Widget.close();
};