# How to make entire flash banner to link to a site when clicked on?

**URL:** <https://forum.kirupa.com/t/how-to-make-entire-flash-banner-to-link-to-a-site-when-clicked-on/249217>\
**Category:** Uncategorized\
**Created:** [January 16, 2008, 4:44pm UTC](https://forum.kirupa.com/t/how-to-make-entire-flash-banner-to-link-to-a-site-when-clicked-on/249217 "2008-01-16T16:44:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![acc](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@acc](https://forum.kirupa.com/u/acc)\
**Post date:** [January 16, 2008, 4:44pm UTC](https://forum.kirupa.com/t/how-to-make-entire-flash-banner-to-link-to-a-site-when-clicked-on/249217/1 "2008-01-16T16:44:26Z")

</div>

I think the title says it all…

I tried making a button and have the alpha to 0, but will not go to link.

I have a button that links to site

```auto

function gotoSite(event:MouseEvent):void
{
var nameURL:URLRequest = new URLRequest("http://www.site.com/");
navigateToURL(nameURL);
}

btn1.addEventListener(MouseEvent.CLICK, gotoSite);

```

then I tried adding in the other button (over the entire movie) below the btn1…

```auto

btnMovie.addEventListener(MouseEvent.CLICK, gotoSite);

```

and it will not work… is there another way for me to do this?

Thanks
