PDA

View Full Version : Links



smith.james0
December 1st, 2003, 01:51 PM
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 ("http://www.j-smith.org", "_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?

Voetsjoeba
December 1st, 2003, 01:59 PM
You made it a movieclip instead of a button. Place the image inside a button and apply the same code to it, and it should work :)

smith.james0
December 2nd, 2003, 12:18 PM
i have inserted a new symbol, clicked button, then put my image in the frame for the up bit of the button. I put the button in my design and it still doesnt work?

Voetsjoeba
December 2nd, 2003, 02:25 PM
You also have to cut and paste that code from where it was to that button.