# Help Needed w/ mc links

**URL:** <https://forum.kirupa.com/t/help-needed-w-mc-links/312300>\
**Category:** flash\
**Created:** [July 30, 2010, 1:30am UTC](https://forum.kirupa.com/t/help-needed-w-mc-links/312300 "2010-07-30T01:30:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwolf](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@jwolf](https://forum.kirupa.com/u/jwolf)\
**Post date:** [July 30, 2010, 1:30am UTC](https://forum.kirupa.com/t/help-needed-w-mc-links/312300/1 "2010-07-30T01:30:14Z")

</div>

This is my first time in this forum. I am creating a framed website in Dreamweaver, but I made my navigation menu in Flash w/ AS 3. The frameset has two frames, one is called header and the other is called content. I want the flash menu to stay in the header frame (which it does) and I want the links to change the page in the content frame.

I tried targeting the content frame in my function that changes pages, but for some reason it continues to open the new page (link) in a new window. Any help would be appreciated. The function code is below…

function newPage(e:MouseEvent):void  
{  
new Tween(highlight\_mc,“x”,Strong.easeOut,highlight\_mc.x,e.currentTarget.x,12,false);  
currentPage = MovieClip(e.currentTarget);  
if (currentPage == home\_mc)  
{  
var page:URLRequest = new URLRequest(“home.html”);  
}  
else if (currentPage == teams\_mc)  
{  
var page:URLRequest = new URLRequest(“teams.html”);  
}  
else if (currentPage == blog\_mc)  
{  
var page:URLRequest = new URLRequest(“[http://www.lindberghhoops.org/blogs](http://www.lindberghhoops.org/blogs)”);  
}  
else if (currentPage == staff\_mc)  
{  
var page:URLRequest = new URLRequest(“staff.html”);  
}  
else if (currentPage == jfb\_mc)  
{  
var page:URLRequest = new URLRequest(“jfb.html”);  
}  
else if (currentPage == info\_mc)  
{  
var page:URLRequest = new URLRequest(“info.html”);  
}  
else if (currentPage == media\_mc)  
{  
var page:URLRequest = new URLRequest(“media.html”);  
}  
else if (currentPage == events\_mc)  
{  
var page:URLRequest = new URLRequest(“events.html”);  
}  
else if (currentPage == history\_mc)  
{  
var page:URLRequest = new URLRequest(“history.html”);  
}  
else if (currentPage == alumni\_mc)  
{  
var page:URLRequest = new URLRequest(“alumni.html”);  
}  
else if (currentPage == camps\_mc)  
{  
var page:URLRequest = new URLRequest(“camps.html”);  
}  
else if (currentPage == links\_mc)  
{  
var page:URLRequest = new URLRequest(“links.html”);  
}  
else if (currentPage == contact\_mc)  
{  
var page:URLRequest = new URLRequest(“contact.html”);  
}  
navigateToURL(page, “content”);  
}
