PDA

View Full Version : making a button link


tarnation
08-27-2007, 08:53 PM
ok, so, I got a template for a web page, it has a flash menu at the top, no drop-downs or anything, just 4 buttons. I have flash CS3, the buttons as of now are set as "movieclips". I have been searching online, searching the help files, everything, for the past 6 hours to try and figure out how to make it so when people click the button, it goes to a different page on the site. lol.

I know I am a total noob, but those 6 hours I spent were also my first 6 hours with flash. so I know its a simple question, but, please, any help is greatly appreciated.

Alexus
08-28-2007, 06:38 AM
Open Flash help and read about
onRelease - this is for pressing button
getURL - this is for going to the proper url
gotoAndPlay - for changing current frame

Stromgren
08-30-2007, 11:28 PM
Here's the code you need:

intance_name_of_your_movieclip.onRelease = function(){
gotoAndPlay(frame);
}

Hope it'll work..