Hey, I'm currently using the piece of ActionScript below to open a link when pressing a button. The problem is the link is opening in a new tab/window. What do I need to do so flash opens the site in the same window (the flash application will be placed on a website)? Netherlands.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); function mouseDownHandler(event:MouseEvent):void { navigateToURL(new URLRequest("index.php/destinations/netherlands")); } Code (markup):
This is how it should be: Netherlands.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); function mouseDownHandler(event:MouseEvent):void { navigateToURL(new URLRequest("index.php/destinations/netherlands"), "_self"); } Code (markup): See where I added ,"_self" If that doesn't work how you want it then change self to parent.