You can use it (when not in legacy) like this:
var icon = Assets.getBitmapData ("icon.png");
stage.window.setIcon (icon.image);
I think you can do something like this on legacy:
Lib.setIcon ("path/to/icon.png");
You can use it (when not in legacy) like this:
var icon = Assets.getBitmapData ("icon.png");
stage.window.setIcon (icon.image);
I think you can do something like this on legacy:
Lib.setIcon ("path/to/icon.png");
Hmm, code compiles in both next and legacy, but doesn’t do anything in either.
Aw well, maybe I’ll stick to my ApplicationMain hack.