# Hard Time Getting Button To Work (Open Link to Other Site)

**URL:** <https://forum.kirupa.com/t/hard-time-getting-button-to-work-open-link-to-other-site/296291>\
**Category:** flash\
**Created:** [September 12, 2009, 5:21pm UTC](https://forum.kirupa.com/t/hard-time-getting-button-to-work-open-link-to-other-site/296291 "2009-09-12T17:21:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kioshi](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@kioshi](https://forum.kirupa.com/u/kioshi)\
**Post date:** [September 12, 2009, 5:21pm UTC](https://forum.kirupa.com/t/hard-time-getting-button-to-work-open-link-to-other-site/296291/1 "2009-09-12T17:21:15Z")

</div>

Hi, i’m new to flash cs4 and action script entirely, and i’m stuck on the final stretch of a project i’m workng on. I’m out of hosting at the moment as far as uploading the site goes, and posting a link, but here is a copy of the action script and if anyone can tell me just by reading it if there is something wrong, i’d be greatly appreciative.

My Problem Is: I want whenever i click the button “twitter\_btn” to open a new tab/window to the link and nothing happens when i click on it.

Here’s my code.

```auto
stop();home_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler49);function mouseDownHandler49(event:MouseEvent):void {
 
gotoAndStop(1, "home");
 
}
stop();about_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler50);function mouseDownHandler50(event:MouseEvent):void {
 
gotoAndStop(1, "aboutus");
 
}
stop();projects_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler51);function mouseDownHandler51(event:MouseEvent):void {
 
gotoAndStop(1, "projects");
 
}
stop();media_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler52);function mouseDownHandler52(event:MouseEvent):void {
 
gotoAndStop(1, "aboutus");
 
}
stop();donate_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler53);function mouseDownHandler53(event:MouseEvent):void {
 
gotoAndStop(1, "donate");
 
}
stop();arcade_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler54);function mouseDownHandler54(event:MouseEvent):void {
 
gotoAndStop(1, "arcade");
 
}
stop();contactus_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler55);function mouseDownHandler55(event:MouseEvent):void {
 
gotoAndStop(1, "contact");
 
}
stop();projectsavethechildren_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler84);function mouseDownHandler84(event:MouseEvent):void {
 
gotoAndStop(1, "projectlove");
 
}
stop();projectpbnj_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler85);function mouseDownHandler85(event:MouseEvent):void {
 
gotoAndStop(1, "projectpbnj");
 
}
stop();projectpamper_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler86);function mouseDownHandler86(event:MouseEvent):void {
 
gotoAndStop(1, "projectpamper");
 
}
twitter_btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler111);
function myHandler111(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.twitter.com/"), "_blank");
}

```

Thanks in Advance.
