Flash button link trouble

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);

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”. I am deprived of sleep, can someone hit me over the head with the answer please.

big THANKS!

Hi,

Are you writing script to the Button itself?

If so, use the below code:

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.

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

}