NativeApplication.nativeApplication.icon.bitmaps = bitmapData();
I’m trying to edit the bitmaps for the system tray icon, but I got an error:
Implicit coercion of a value of type flash.display:BitmapData to an unrelated type Array.
What mistake did I make, or could you tell me the meaning of this error?
Icon.bitmaps is an Array of BitmapData, with one BitmapData instance for each size. You must reassign the entire array:
Alternatively, as the livedocs mention, you can specify all the bitmap sizes: