OK, I'm a little late to this discussion.

I'm working on something similar, if all you want to do is close the popup, this works:
- Code: Select all
function mouseUpHandler(event:MouseEvent):void {
ExternalInterface.call("self.close()");
}
I'm trying to figure out how to close the popup and load a new page in the parent.
"website.com" is a dummy url. I don't have access to the js file that opens the popup so I have no idea what the parent page's name is.
- Code: Select all
function mouseUpHandler(event:MouseEvent):void {
var url:String = "http://www.website.com";
ExternalInterface.call("window.opener.location.href='" + url + "'");
ExternalInterface.call("self.close()");
}
Closing the popup works, but not the url load,even if I comment out the line that closes the popup.
Thoughts?