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”));
}
function internshipHandler (event:MouseEvent):void {
navigateToURL(new URLRequest(“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.