Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var closed:Boolean = true;
- var dummy:BitmapData;
- dummy = new BitmapData(1, 1);
- try
- {
- // Try to capture the stage: triggers a Security error when the settings dialog box is open
- dummy.draw(stage);
- }
- catch (error:Error)
- {
- closed = false;
- }
- dummy.dispose();
- dummy = null;
- // WHEN PRIVACY PANEL IS ON MOUSE EVENTS ARE DISABLED
- stage.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
- function onMouseOver(e:Event):void {
- trace("privacy panel closed");
- //REMOVE THE LISTENER ON FIRST TIME
- stage.removeEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
- //doStuff
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement