Groups | Blog | Home
all groups > flash actionscript > july 2006 >

flash actionscript : Help me make a simple "click to link" action


TheStigma
7/2/2006 6:36:17 PM
I'm trying to add an action to a button, so that if clicked, you are transfered
to a certain link. Very simple stuff, but I just got into flash coding and
understanding the basics, so forgive my noobness =)

Here is the code so far (the action script for this one button):

[code]
// Action script...

on (rollOver)
{
gotoAndPlay("menu2")
}

on (rollOut)
{
stopAllSound();
}
[/code]

Hope someone can help me out =)

-Stigma
kglad
7/2/2006 8:20:14 PM
try:



on(press){
_root.gotoAndPlay("yourLink"); // <- if you want to "link" to a frame on the _root timeline.
AddThis Social Bookmark Button