# Flash button link trouble

**URL:** <https://forum.kirupa.com/t/flash-button-link-trouble/261669>\
**Category:** Uncategorized\
**Created:** [May 29, 2008, 5:41pm UTC](https://forum.kirupa.com/t/flash-button-link-trouble/261669 "2008-05-29T17:41:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MPA](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@MPA](https://forum.kirupa.com/u/MPA)\
**Post date:** [May 29, 2008, 5:41pm UTC](https://forum.kirupa.com/t/flash-button-link-trouble/261669/1 "2008-05-29T17:41:06Z")

</div>

Hello everyone…It’s another great day to have problems instead of six feet under with none, right. Any way, it’s my first time to create a flash button for one of my projects. The test worked great as it changed colors when I moused over it and clicked. But, when it came time to linking it to a page in the site it crashed the site and gave me this message.

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: ‘)’ or ‘,’ expected  
getURL([http://www.howtofundmybusiness.com/index1.php](http://www.howtofundmybusiness.com/index1.php));

Total ActionScript Errors: 1 Reported Errors: 1

Has anyone else had this problem or have I created a new goof ? I actually got the instructions on how to create the button action from “[http://www.kirupa.com/developer/flash5/buttonlink.htm](http://www.kirupa.com/developer/flash5/buttonlink.htm)”. I am deprived of sleep, can someone hit me over the head with the answer please.

big THANKS!

---

<div class="post-metadata">

**Author:** ![pandu\_kirupa](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@pandu\_kirupa](https://forum.kirupa.com/u/pandu_kirupa)\
**Post date:** [May 30, 2008, 7:04am UTC](https://forum.kirupa.com/t/flash-button-link-trouble/261669/2 "2008-05-30T07:04:52Z")

</div>

Hi,

```
Are you writing script to the Button itself?

```

If so, use the below code:

```php
on (press) {
    getURL("http://www.howtofundmybusiness.com/index1.php", "_blank");
}

```

if not, i.e., the button is on the Stage and if you are writing frame script  
then first name the button in the Properties panel and use below code:

// Assuming you named your button, my\_btn.

```php
 
my_btn.onRelease = function() {
 getURL("http://www.howtofundmybusiness.com/index1.php", "_blank");

}

```
