I wish to use a image as a button, so when it’s pressed it goes to the url.

I have been trying all day, but still can not get it to work. I have made the image a button then used this code

on (release) {
getURL (“”, “_blank”);

but i get this error

Scene=Scene 1, Layer=Layer 1, Frame=4: Line 1: Mouse events are permitted only for button instances
on (release) {

Can anyone help me?