Groups | Blog | Home
all groups > flash actionscript > december 2004 >

flash actionscript : button linking to URL


Lilibeta
12/30/2004 10:56:11 PM
:o
Maybe it was too much eggnog during the holidays but I can't seem to do
anything right just now.

I'm creating a rather details site and suddenly I can't even create a button!

I created my new button symbol and its four states. I dragged it to my stage
and added the following code to the button instance on the stage, NOT to the
"frame 1 of layer name".

on (release) {
getURL("http://www.mysite.com", "_blank");
}

Not only does it not link to this URL but the button effects (rollover, hit
etc) don't appear.

I've been staring at it too long now. Thanks for the help and sorry for being
longwinded.

Lilibeta
kglad
12/31/2004 3:10:33 AM
Lilibeta
1/3/2005 1:44:06 AM
:o
Nevermind, I got it figured out. Turns out everything was fine with the
code, it was the button itself that was the problem. I have this bad habit of
trying to use text only as a button and you have to mouse just so on it or it
doesn't appear as a link.

Thanks,
Lilibeta
kglad
1/3/2005 4:05:14 AM
AddThis Social Bookmark Button