# Navigation Problems

**URL:** <https://forum.kirupa.com/t/navigation-problems/287433>\
**Category:** Uncategorized\
**Created:** [April 30, 2009, 11:45pm UTC](https://forum.kirupa.com/t/navigation-problems/287433 "2009-04-30T23:45:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![r3h0ld3r](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@r3h0ld3r](https://forum.kirupa.com/u/r3h0ld3r)\
**Post date:** [April 30, 2009, 11:45pm UTC](https://forum.kirupa.com/t/navigation-problems/287433/1 "2009-04-30T23:45:20Z")

</div>

In an effort to make a website look a little better, I’ve added a navigation bar I made in flash that contains five buttons. Ideally I’d like these buttons to load the specified page of the site in the same window, however, every time a button is clicked, a new window opens with the page specified. Here is an example of what I have in my actionscript:

btn\_home.addEventListener (MouseEvent.CLICK, homeHandler);

btn\_internship.addEventListener (MouseEvent.CLICK, internshipHandler);

function homeHandler (event:MouseEvent):void {  
navigateToURL(new URLRequest(“[http://www.blahblah.com/index.html](http://www.blahblah.com/index.html)”));  
}

function internshipHandler (event:MouseEvent):void {  
navigateToURL(new URLRequest(“[http://www.blahblah.com/internship.html](http://www.blahblah.com/internship.html)”));  
}

What am I doing wrong? Again I’d like the URL requested to load in the original browser window, not open up a new window every time a button is pressed.

Thanks.
