| Pacote | flash.desktop |
| Classe | public class InteractiveIcon |
| Herança | InteractiveIcon Icon EventDispatcher Object |
| Subclasses | DockIcon, NativeWindowIcon, SystemTrayIcon |
Use Shell.shell.icon to get an instance of the application
icon. Use the icon property of a NativeWindow object to
get an instance of a window icon.
You cannot instantiate the InteractiveIcon class directly. Calls to
the new InteractiveIcon() constructor will throw an
ArgumentError exception.
Veja também
| Propriedade | Definido por | ||
|---|---|---|---|
| bitmaps : Array
The icon bitmaps as an array of BitmapData objects.
| InteractiveIcon | ||
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
| height : int
[read-only]
The current display height of the icon in pixels.
| InteractiveIcon | ||
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
| width : int
[read-only]
The current display width of the icon in pixels.
| InteractiveIcon | ||
| bitmaps | propriedade |
bitmaps:Array [read-write] The icon bitmaps as an array of BitmapData objects.
When an icon is displayed in a given operating system context, the bitmap in the array closest to the displayed size will be used (and scaled if necessary). Common sizes include 16x16, 32x32, 48x48, and 128x128. (512x512 pixel icons may be used for some operating system icons in the near future.)
In some contexts, the operating system may use a default, system icon
when nothing has been assigned to the bitmaps property.
In others, no icon will appear.
To set or change the icon appearance, assign an array containing
the bitmapData objects to the bitmaps property:
icon.bitmaps = new Array(icon16x16.bitmapData, icon128x128.bitmapData);
Modifying bitmaps directly has no effect.
To clear the icon image, set bitmaps to an empty array.
Note: When loading image files for an icon, the PNG file format generally provides the best alpha blending. The GIF format only supports on or off transparency (no blending). The JPG format does not support transparency at all.
public function get bitmaps():Array
public function set bitmaps(value:Array):void
| height | propriedade |
height:int [read-only] The current display height of the icon in pixels.
Some icon contexts support dynamic sizes.
height indicates the current size.
public function get height():int
| width | propriedade |
width:int [read-only] The current display width of the icon in pixels.
Some icon contexts support dynamic sizes.
width indicates the current size.
public function get width():int