Flash_flea
Flash_flea

Reputation: 1

What is wrong with my AS2 button code?

I was to just put a button component and the script below for the page to go back to home when pressed:

stop();
gallery_btn.onRelease = function (){
        getURL("http://chopsticks-cutlery.de ");
}

For some reason, it's giving the following error messages below (kindly click on this link: http://i429.photobucket.com/albums/qq19/tsujzpie/urltobuttoncodeproblems.jpg)

Don't know why this is happening - it is supposed to be a simple script to work quickly error-free right?

Upvotes: 0

Views: 413

Answers (1)

ʞᴉɯ
ʞᴉɯ

Reputation: 5594

You are using " but it is wrong. Use this code:

stop();
gallery_btn.onRelease = function (){
        getURL("http://chopsticks-cutlery.de");
}

Upvotes: 1

Related Questions