# Closing a pop up in Action Script 3

**URL:** <https://forum.kirupa.com/t/closing-a-pop-up-in-action-script-3/244330>\
**Category:** Uncategorized\
**Created:** [November 16, 2007, 1:41pm UTC](https://forum.kirupa.com/t/closing-a-pop-up-in-action-script-3/244330 "2007-11-16T13:41:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Annaleewe](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Annaleewe](https://forum.kirupa.com/u/Annaleewe)\
**Post date:** [November 16, 2007, 1:41pm UTC](https://forum.kirupa.com/t/closing-a-pop-up-in-action-script-3/244330/1 "2007-11-16T13:41:31Z")

</div>

I’m having some problems closing the pop window[[COLOR=Black].[/COLOR] If anyone know another way please let me know[URL=“http://game-poker-online.tripod.com/casino-game-online-play-poker-top.html”].](http://game-poker-online.tripod.com/real-money-online-poker.html).

Here is what i did in action script 2

stop();

exitbut.onPress = function(){  
getURL(“javascript ![](http://forum.kirupa.com/uploads/kirupa/1800/8c9841d03b4dffbb.gif)arent[.](http://game-poker-online.tripod.com/best-online-poker-room.html)close()”);  
};

Here is what i’m trying in sction script 3

exit\_but[.](http://game-poker-online.tripod.com/beat-game-online-play-poker.html)addEventListener(MouseEvent.CLICK, closeWin);

function closeWin (e:MouseEvent):void {  
navigateToURL(new URLRequest(“javascript:window.close()”), “\_self”);  
}

I’m looking for a better way [.](http://game-poker-online.tripod.com/play-poker-online-no-download.html). this way seem buggEEE. If anyone can help I would be so grateful. Anna
