# navigatToURL Q

**URL:** <https://forum.kirupa.com/t/navigattourl-q/237409>\
**Category:** flash\
**Created:** [August 30, 2007, 12:46am UTC](https://forum.kirupa.com/t/navigattourl-q/237409 "2007-08-30T00:46:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![varPBR\_Tasty](https://avatars.discourse-cdn.com/v4/letter/v/ccd318/32.png) [@varPBR\_Tasty](https://forum.kirupa.com/u/varPBR_Tasty)\
**Post date:** [August 30, 2007, 12:46am UTC](https://forum.kirupa.com/t/navigattourl-q/237409/1 "2007-08-30T00:46:29Z")

</div>

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:

```auto
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
