A problem with navigation for my CS3 site

I hope that this hasn’t been discussed in the past, but I was unable to find an answer to my problem using the search. I am currently using CS3 (first time flash user) to whip up a site.

My plan is to use a frame set with the flash in the top frame (it will be the navigation menu for the site naturally) and once links are clicked it will change the page bellow. Simple enough Im sure. Only when a link is clicked it will not open the page in the lower frame it simply opens it into a new window as if the _blank tag was being used. The name of the lower frame for simplicity sake is “mainFrame” and bellow is my AS3 code for the button in Flash.

var link1_req:URLRequest = new URLRequest("page2.html");

function link1(event:MouseEvent):void

	navigateToURL(link1_req, "mainFrame");

link1_btn.addEventListener(MouseEvent.CLICK, link1);

From what I can see this is the place to get some answers (to a dumb question this time around Im sure). Thanks a lot for taking the time to check out my post.