Stick Page Forums Archive

action script as2/3

Started by: S.A.R.X | Replies: 5 | Views: 537 | Closed

S.A.R.X
2

Posts: 466
Joined: Nov 2013
Rep: 10

View Profile
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)
Se7en
2

Posts: 161
Joined: Apr 2013
Rep: 10

View Profile
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 ?
S.A.R.X
2

Posts: 466
Joined: Nov 2013
Rep: 10

View Profile
Dec 25, 2013 10:56 AM #1129755
Quote from Se7en
so you want two clickables movieclips ?

one takes you to a url and the other plays an animation ?

yep
Se7en
2

Posts: 161
Joined: Apr 2013
Rep: 10

View Profile
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")
}


S.A.R.X
2

Posts: 466
Joined: Nov 2013
Rep: 10

View Profile
Dec 25, 2013 11:19 AM #1129762
Quote from Se7en
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")
}



thanks
Se7en
2

Posts: 161
Joined: Apr 2013
Rep: 10

View Profile
Dec 25, 2013 11:31 AM #1129767
you are welcome :)
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.