ActionScript 3 使用您选择的窗口方法轻松定位URL

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ActionScript 3 使用您选择的窗口方法轻松定位URL相关的知识,希望对你有一定的参考价值。

// gotoLink takes 3 parameters: the event, the URL string, and the method (_self, _blank, etc)
//
// sample usage:
// gotoLink( evt, "http://google.com", "_blank" );


function gotoLink( evt:Event, l:String, meth:String  ) : void
{
	var URLReq:URLRequest = new URLRequest(l);
	try 
	{
		navigateToURL(URLReq, meth);
	} catch (e:Error) 
	{
		trace(e);
	}
}

以上是关于ActionScript 3 使用您选择的窗口方法轻松定位URL的主要内容,如果未能解决你的问题,请参考以下文章

Actionscript 3 - 如何删除菜单栏、滚动条以仅显示空白弹出窗口?

使用 ActionScript 3 为捕捉函数创建数组

ActionScript 3 在窗口的舒展背景调整大小

ActionScript 3 拖动整个弹性应用程序窗口

ActionScript 3 AS3 Javascript弹出窗口

使用您选择的窗口方法轻松定位URL