The ActionScript 3.0 code below works when tested in Adobe Flash CS6, however when tested in a browser the code does not work. Any ideas why this is happening?
buttonInstance.addEventListener(MouseEvent.CLICK,function(e:MouseEvent){
flash.net.navigateToURL(new URLRequest("http://facebook.com"), "_blank");
trace("link clicked");
},false,0,true);