开发者

AIR modal screen

开发者 https://www.devze.com 2023-01-10 14:13 出处:网络
I am developing an AIR application where I need to display a Modal Window. The screen should fill the enti开发者_C百科re desktop including the Task Bar.

I am developing an AIR application where I need to display a Modal Window. The screen should fill the enti开发者_C百科re desktop including the Task Bar. If the user wants to exit the screen, he should press Windows+D option or activate Task Manager.

Can any one post some sample code?


To get rid of taskbar, switch to fullscreen mode with

stage.displayState = StageDisplayState.FULL_SCREEN;

User always can switch to another window with Alt-Tab (on Windows), AIR cannot "lock" screen to prevent that.


Try the example here

http://flex4fun.com/2010/12/01/flex4-popupmanager-example-change-modal-color-and-click-modal-close-popup/

PopUpManager.createPopUp(this, TitleWindow, true)

last argument makes the popup "modal".

http://docs.huihoo.com/flex/4/mx/managers/PopUpManager.html#createPopUp()

0

精彩评论

暂无评论...
验证码 换一张
取 消