mApplication.flashTaskBarButton()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector 2.0 build e4;

Macintosh: Not Applicable

Usage

mApplication.flashTaskBarButton(flash:Boolean) : Void

Parameters

flash - Send flash == true to start the button flashing. The button will continue to flash until the command is called again with flash == false or until the window is activated.

Returns

Nothing.

Description

Method; Flashes the application's taskbar button to alert the user your application needs attention. This command will not flash the button when your application is the active application.

Example

This example flashes the Windows taskbar button or bounces the Dock icon on the Mac.

function alertUser () {
	if (mSystem.isMac()) {
		mApplication.bounceDockIcon(true);
	} else {
		mApplication.flashTaskBarButton(true);
	}
}

See Also

mApplication.bounceDockIcon(), mApplication.setSystemTrayIcon(), mApplication.showInSystemTray(), mWindow.flashTaskBarButton()

Code Examples

Animating the Dock or System Tray Icon