更新时间:2023-10-27 13:12:52
使用_self
而不是_blank
I have created a webpage that has some Flash content, the page includes a command button that once clicked it calls another webpage and opens it. The problem is that it is opening in a new tab and I want to open it replacing the HTML flash window.
This is the code for the button:
enterSite.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_3);
function fl_ClickToGoToWebPage_3(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.mywebpage.com/webdesign"), "_blank");
}
Use_self
instead of_blank