Wednesday, August 5, 2009

Link navigateToURL that pops a new window with dimensions


safePromo_mc.addEventListener(MouseEvent.MOUSE_DOWN, safeClick);
function safeClick(e:MouseEvent):void {
var jscommand:String = "window.open('http://www.adobe.com','win','height=200,
width=300,toolbar=no,scrollbars=yes');";
var url:URLRequest = new URLRequest("javascript:" + jscommand + " void(0);");
navigateToURL(url, "_self");
}

No comments: