Why Javascript ? Do you want to open a window or link to URL ?.
if you want to do the second, in KM7 and AS3 look this code:
Code:
var OtherSiteURL:URLRequest = new URLRequest("http://www.koolmoves.com");
function GoUrl(event:MouseEvent):void
{
navigateToURL(OtherSiteURL, "_blank");
}
YourBotton.addEventListener(MouseEvent.CLICK, GoUrl);
but if you want really open window in KM7 with AS3 it is this code:
Code:
var js:URLRequest = new URLRequest();
js.url = "javascript:window.open('http://www.koolmoves.com', 'fs', 'fullscreen=yes'); newWindow.focus(); void(0);";
function openPopUp(evt:MouseEvent):void
{
navigateToURL(js, "_blank");
}
YourBotton.addEventListener(MouseEvent.CLICK, openPopUp);
It is all !