//as2___________________________________
my_btn.onRelease=function(){
getURL("http://tw.yahoo.com/","_blank");
}
//as3___________________________________
my_btn.addEventListener(MouseEvent.CLICK, openNewPage);
function openNewPage(event:MouseEvent):void{
var targetURL:URLRequest = new URLRequest("http://tw.yahoo.com/");
navigateToURL(targetURL, "_blank");
}
No comments:
Post a Comment