Jump to content

buttons not responding


rebeccamenzies
 Share

Recommended Posts

I have 5 thumbnail buttons, in a photo gallery styled page. this is the code I am using to link to the corresponding photos.on(release) {photosMC.gotoAndPlay("img1");}this code is placed on each button but with the relevant instance name.all my setting have been changed to AS 2.0I have been reading around on several forums and can't seem to crack it!I am sure it is something simple, but i am new.PLEASE HELP ME.cheersbex :)

Link to comment
Share on other sites

  • 3 months later...

set up frames labels with on the main timeline. name frame label1 "pic 1" frame label 2 " pic 2 " and until you have named all five frame labels then type btn1.onPress = function(){gotoAndStop("pic1");}btn2.onPress = function(){gotoAndStop(pic2)}btn3.onPress = function(){gotoAndStop(pic3);}btn4.onPress = function(){gotoAndStop(pic4);}btn5.onPress = function(){gotoAndStop(pic5);}ok hope that helps

Edited by hansolo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...