action script as2/3
Started by: S.A.R.X | Replies: 5 | Views: 537 | Closed
Dec 25, 2013 4:48 AM #1129653
How to make a symbol are clickable and will tranfer us to a specific URL when clicked. And an action script that will do an animation that we've prepared(I consider it as hyperlink to another frame)
Dec 25, 2013 10:46 AM #1129754
so you want two clickables movieclips ?
one takes you to a url and the other plays an animation ?
one takes you to a url and the other plays an animation ?
Dec 25, 2013 10:56 AM #1129755
Quote from Se7enso you want two clickables movieclips ?
one takes you to a url and the other plays an animation ?
yep
Dec 25, 2013 11:02 AM #1129758
put this code in the first frame
mc1.onRelease = function(){//this goes to the url you write
getURL("YOUR LINK",_blank)
}
mc2.onRelease = function(){//this plays the animation
gotoAndPlay("THE NAME OF THE 1st FRAME IN THE ANIMATION")
}
Dec 25, 2013 11:19 AM #1129762
Quote from Se7enput this code in the first frame
mc1.onRelease = function(){//this goes to the url you write
getURL("YOUR LINK",_blank)
}
mc2.onRelease = function(){//this plays the animation
gotoAndPlay("THE NAME OF THE 1st FRAME IN THE ANIMATION")
}
thanks
Dec 25, 2013 11:31 AM #1129767
you are welcome :)