mApplication.showInSystemTray()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows NT Support: Flash 7 SWF + mProjector 2.0;

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

Usage

mApplication.showInSystemTray(show:Boolean) : Void

Parameters

show - True or false.

Returns

Nothing.

Description

Method; Shows or hides an icon in the Windows System Tray or on the right side of the Mac OS Menu Bar. This comand is generally used to add easy access to always-on utility applications running as background processes. You can add your application to the System Tray/Menu Bar using mApplication.setSystemTrayIcon() and mApplication.showInSystemTray(). mApplication.setSystemTrayIcon() sets a region in your swf from which the icon will be drawn. Animating this region will animate your system tray icon. The Alert User sample shows how to animate the system tray / menu bar icon.

Example

The following example shows the system tray icon.

mApplication.showInSystemTray(true);

See Also

mApplication.bounceDockIcon(), mApplication.setDockIconbadge(), mApplication.setSystemTrayIcon(), mApplication.setSystemTrayIconFile(), mApplication.onSystemTray(), Taskbar, System Tray, and Dock Icons

Code Examples

Animating the Dock or System Tray Icon