且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何链接到Adobe Flash CS6中的网站或网页

更新时间: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