# Buttons linking to URL Problems

**URL:** <https://forum.kirupa.com/t/buttons-linking-to-url-problems/251806>\
**Category:** flash\
**Created:** [February 12, 2008, 8:48pm UTC](https://forum.kirupa.com/t/buttons-linking-to-url-problems/251806 "2008-02-12T20:48:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neophyte\_2](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@neophyte\_2](https://forum.kirupa.com/u/neophyte_2)\
**Post date:** [February 12, 2008, 8:48pm UTC](https://forum.kirupa.com/t/buttons-linking-to-url-problems/251806/1 "2008-02-12T20:48:21Z")

</div>

Hi,  
I’m having trouble linking my buttons to a URL. Keep getting and error message on my function line. Will someone help by looking at my code and teling me where I screwed up. I’m using AS 3.

thanks for the help- I know this is simple stuff and I appreciate your expertise.

import flash.events.MouseEvent;  
var getMore:URLRequest = new URLRequest(“[http://www.nyc.gov/html/doh/html/condoms/condoms-press.shtml](http://www.nyc.gov/html/doh/html/condoms/condoms-press.shtml)”);

//–moreButn Get URL–\

getMore.addEventListener(MouseEvent.CLICK,bClick);  
function bClick(event:MouseEvent):void{  
navigateToURL(getMore);  
}
