mApplication.setDockIconBadge()

Availability

Windows: Not Applicable

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 1.0;

Usage

mApplication.setDockIconBadge(badge:String, color:Object) : Void

Parameters

badge - Text string to display.

color - Color of badge.

Returns

Nothing.

Description

Method; Sets text displayed with the dock icon.

Example

This example adds a text message on a blue "badge" to the application's dock icon to indicate the number of unread messages.

onNewMessage = function(numberOfUnreadMessages) {
     mApplication.setDockIconBadge(numberOfUnreadMessages, 0x0000CC);
}

See Also

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

Code Examples

Animating the Dock or System Tray Icon