# 2 navigateToURL buttons

**URL:** https://forum.kirupa.com/t/2-navigatetourl-buttons/322446
**Category:** flash
**Created:** [May 21, 2011, 2:54am UTC](https://forum.kirupa.com/t/2-navigatetourl-buttons/322446 "2011-05-21T02:54:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pumpingbeat](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@pumpingbeat](https://forum.kirupa.com/u/pumpingbeat)
#### Post date: [May 21, 2011, 2:54am UTC](https://forum.kirupa.com/t/2-navigatetourl-buttons/322446/1 "2011-05-21T02:54:05Z")

</div>

I’m trying to get a couple of buttons to work on my simple Flash slideshow. However, ActionScript 3 is giving me this error:

1126: Function does not have a body.

Here is my script:

more\_btn.addEventListener(MouseEvent.CLICK,clickHandler1);  
more2\_btn.addEventListener(MouseEvent.CLICK,clickHandler2);

function clickHandler1(event:MouseEvent):void{  
navigateToURL(new URLRequest(“[http://www.rosbreed.com](http://www.rosbreed.com)”));  
}

function clickHandler2(event:MouseEvent):void;{  
navigateToURL(new URLRequest(“[http://www.strawberrygenomics.com](http://www.strawberrygenomics.com)”));  
}

Is there a better way to compose this script?

I look forward to solutions.:bandit:
