AIR如何实现窗口顶置
首先想到了alwaysInFront = true
这个是实现窗口显示在最前端,有这个就已经足够了。
我们只要把该代码进行循环实现,那么就会实现顶置效果了。
代码:
1 public function init():void 2 { 3 this.addEventListener(Event.EXIT_FRAME,Frame) 4 } 5 private function Frame(e:Event):void 6 { 7 8 stage.nativeWindow.alwaysInFront = true 9 }

浙公网安备 33010602011771号