flash中按钮添加链接打开网页

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 :函数名称;