import flash.net.URLRequest;
btn.addEventListener(MouseEvent.MOUSE_UP, fn);
function fn(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.lookcss.com"),"_blank");}
btn
:按钮实例名;
_blank
:打开方式(新窗口打开)
fn
:函数名称;
import flash.net.URLRequest;
btn.addEventListener(MouseEvent.MOUSE_UP, fn);
function fn(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.lookcss.com"),"_blank");}
btn
:按钮实例名;
_blank
:打开方式(新窗口打开)
fn
:函数名称;
更多来自我们博客的帖子