Right, so I have gotten the navigateToURL code to open the URL I need it to, but I am trying to figure out how to get it to open the new URL in the parent window.
Here’s the code I have:
var homeLoader:Loader = new Loader();
var homeRequest:URLRequest = new URLRequest("http://www.myURL.com");
addChild(homeLoader);
var home_b:navB = new navB();
home_b.scaleX = 51;
home_b.scaleY = 5;
home_b.x = 173;
home_b.y = 62.5;
home_b.buttonMode = true;
home_b.addEventListener(MouseEvent.MOUSE_UP, homeLoad);
addChild(home_b);
function homeLoad(e:Event):void{
navigateToURL(homeRequest, _parent);
}
I’ve tried adding the _parent command into as many places as I can think of, but always return compiler errors. As I said, right now, this code works to open the URL in another window, but I am trying to have it load into the parent window.
Any advice?
Thanks,
varPBR:Tasty