xxx.com
Loading
var js:URLRequest=new URLRequest();
//js.url="javascript:window.opener.focus()";
js.url="javascript:if(window.opener){window.opener.focus();}else{window.open('http://yoururl.com','name');newWindow.focus(); void(0);}";
navigateToURL(js,'_self');