|
|||
|
I runt my application in systray and need to bring all dialogs.msgBox'es to top and make them to stay on top... even if i click on other applications.
Is it possible and how? :S Im also struggeling with another problem. I have in flash, if Alert is visible... the a certain code is not executed... how do i do same thing with Dialogs.msgBox ? At the moment, if i get the msgBox up.. and klick ok (if i cant read messages at the moment), then flash alert is still open (in systray)... and if this is open, i cant runt call this function. function myFunction(r:ResultEvent) { if (r.result>0) { if (!flash_Alert_window._visible) { flash_Alert_window = Alert.show("You have "+r.result+" new messades", "Message", Alert.OK, this); Dialogs.msgBox("You have "+r.result+" new messages!",Name+"!",48) SysTray.balloonTip = "New Message"; SysTray.balloonTitle = Name+"!"; SysTray.balloonIcon = "info"; SysTray.balloonTimeout = 3000;//600000; SysTray.showBalloonTip(); //Global.getMainWnd().bAlwaysOnTop(Dialogs.msgBox); Global.getMainWnd().bringToTop(); } } } |
|
|||
|
Well ni need for screen.
its simple. i call a function with setInterval in flash. every time this functionis called, before setting balloonTip title and so on, i check with if(!Alert._visible) if flash internal alert component already is visible. IF it is, then balloontip and title and timeout wont be triggered. but since i also use Dialogs.msgBox.... i also need to check if this Dialogs.msgBox is visible too.. i mean if it has triggered. if thisDialogs.msgBox is up and visible the ballonTip title and so on wont be set/trigered |
|
|||
|
Thank you for your reply!
I think its not quite the solution to my problem. Anyhow, instead of cheking if messageBox, created by SWFKIT is visible, i use flash internal alert. By this i mean, if: Code:
if(!myAlert._visible){
//trace something
} else {
//do something else
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|