# Problem with opening HTML in frame

**URL:** <https://forum.kirupa.com/t/problem-with-opening-html-in-frame/283325>\
**Category:** flash\
**Created:** [March 4, 2009, 10:34pm UTC](https://forum.kirupa.com/t/problem-with-opening-html-in-frame/283325 "2009-03-04T22:34:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rlbaris](https://avatars.discourse-cdn.com/v4/letter/r/3be4f8/32.png) [@rlbaris](https://forum.kirupa.com/u/rlbaris)\
**Post date:** [March 4, 2009, 10:34pm UTC](https://forum.kirupa.com/t/problem-with-opening-html-in-frame/283325/1 "2009-03-04T22:34:02Z")

</div>

Hi,

I made a navigation movie clip with buttons, whom I want to be set in one frame- so the navigation MC will stand still while the contents body will change in another frame.

In AS 2 it’s easy- just add the frame name in the getURL command.  
But I couldn’t mange it in AS 3.

This is the code I used on my button:

```auto
b1.addEventListener(MouseEvent.CLICK, onMouseClick);

function onMouseClick (e:MouseEvent):void
{
    var request:URLRequest = new URLRequest("http://www.google.com");
    navigateToURL(request,"bottomFrame") 
}

```

(Google is just an example, and “bottomFrame” is my frame name…)

Thank you very much!  
rlbaris
