问题
I need to pin AIR application over other windows, I mean, regardless if AIR application is in focus or not, it must not hide, it always must be shown, whatever other program I activate or work with, AIR application must be over every window always. Is it possible? If it is, please show me the function (example code will be better :) ) which does it, incase if AS3 has one.
回答1:
You're looking for the alwaysInFront property of the NativeWindow class:
The
alwaysInFront
property specifies whether this window will always be in front of other windows (including those of other applications).
The following example forces a window to be displayed in front of all other windows (that are not similarly forced to the front):
windowObj.alwaysInFront = true;
Another example with a reference to a display object on the window stage:
displayObject.stage.nativeWindow.alwaysInFront=true;
来源:https://stackoverflow.com/questions/39489071/is-it-possible-to-pin-air-app-over-any-opened-windows