| Previous | Next | |
Windows: Not Applicable
Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector
1.0;
mApplication.setDockIconBadge(badge:String, color:Object) : Voidbadge - Text string to display.
color - Color of badge.
Nothing.
Method; Sets text displayed with the dock icon.
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);
}mApplication.bounceDockIcon(), mApplication.setSystemTrayIcon(), mApplication.showInSystemTray()
Animating the Dock or System Tray Icon
| Questions or Feedback? | Previous | Next |