# "\_self" not opening URL in same window

**URL:** <https://forum.kirupa.com/t/-self-not-opening-url-in-same-window/292390>\
**Category:** Uncategorized\
**Created:** [July 13, 2009, 9:26pm UTC](https://forum.kirupa.com/t/-self-not-opening-url-in-same-window/292390 "2009-07-13T21:26:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmills](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@bmills](https://forum.kirupa.com/u/bmills)\
**Post date:** [July 13, 2009, 9:26pm UTC](https://forum.kirupa.com/t/-self-not-opening-url-in-same-window/292390/1 "2009-07-13T21:26:25Z")

</div>

Hello,

I’m not very fluent with AS3, however, I have successfully changed the following script from AS1 to AS3. All is working with the exception of the “target”. When I use “\_self”, nothing happens. However, when I remove \_self and click on the button (image), it opens a new window.

All of the tut’s I have followed have suggested the same thing, but it is not working for me. Any assistance with resolving this issue is greatly appreciated.

Here is the URL in question: [http://design.1105media.com/sitecore/sites/THE\_Journal/govConn/stimulus.aspx.htm l](http://design.1105media.com/sitecore/sites/THE_Journal/govConn/stimulus.aspx.html)

And, the AS (below) I’m using. The first block of code is another attempt at correcting this, however, you’ll see that it is commented out.

Thanks again,

B

* * *

stop();

//actions to redirect user to new page in same window  
/_var link:URLRequest = new URLRequest("[http://thejournal.com/microsites/govconnection/21st-century-classroom.aspx");](http://thejournal.com/microsites/govconnection/21st-century-classroom.aspx%22%29;)  
thumbsdown\_btn.addEventListener(MouseEvent.CLICK, onClick);  
function onClick(event:MouseEvent) :void  
{  
navigateToURL(link);  
}_/

thumbsdown\_btn.addEventListener(MouseEvent.MOUSE\_D OWN, thumbDownHandler);  
function thumbDownHandler(event:MouseEvent):void {  
navigateToURL(new URLRequest("[http://thejournal.com/microsites/govconnection/21st-century-classroom.aspx"),](http://thejournal.com/microsites/govconnection/21st-century-classroom.aspx%22%29,) “\_self”);  
}

// triggers animation on mouseOut  
thumbsdown\_btn.addEventListener(MouseEvent.MOUSE\_O UT, mouseDownHandler2);  
function mouseDownHandler2(event:MouseEvent):void {  
gotoAndPlay(16);  
}
