On click closes pop window and changes the parent window URL

Question about having a pop up window display flash movie, button within movie having the function of on click closes pop window and changes the parent window (which pop up came from) to navigate to new url. Having trouble with the parent changing. any ideas?

Thanks,
MT


ready.onRelease = function () {
 getURL("javascript:window.close()");
 getURL("http://www.google.com" ,"target_parent");
}