mApplication.setSystemTrayIcon()

Availability

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

Macintosh: Not Yet Available

Usage

mApplication.setSystemTrayIcon(x:Number, y:Number) : Void

Parameters

x - Left position of the 16x16 rectangle reserved for drawing the system tray icon.

y - Top position of the 16x16 rectangle reserved for drawing the system tray icon.

Returns

Nothing.

Description

Method; Reserves a 16x16 pixel rectangle for the system tray icon. This rectangle will be used for drawing the system tray icon and will not be rendered as part of the animation itself. To stop using a previously reserved rectangle, call mApplication.setSystemTrayIcon(-1,-1). Calling mApplication.showInSystemTray(true) without calling mApplication.setSystemTrayIcon() will simply show the icon of the application itself in the system tray.

Example

The following example reserves the top-left corner of the stage for the system tray icon. Use this location for the best performance.

mApplication.showInSystemTray(true);
mApplication.setSystemTrayIcon(1,1);

See Also

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

Code Examples

Animating the Dock or System Tray Icon