is it possible to pin AIR app over any opened windows?

旧城冷巷雨未停 提交于 2019-12-25 08:53:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!