時(shí)間:2022-09-29
本文章向大家介紹flash中按鈕添加鏈接打開網(wǎng)頁(yè),主要內(nèi)容包括其使用實(shí)例、應(yīng)用技巧、基本知識(shí)點(diǎn)總結(jié)和需要注意事項(xiàng),具有一定的參考價(jià)值,需要的朋友可以參考一下。
import flash.net.URLRequest;
btn.addEventListener(MouseEvent.MOUSE_UP, fn);
function fn(Event:MouseEvent):void{
navigateToURL(new URLRequest("http://www."),"_blank");}
btn :按鈕實(shí)例名;
_blank :打開方式(新窗口打開)
fn :函數(shù)名稱;
|