For example i have values inside array.
Those values are the IDs of buttons. My question is how to use array efficiently to disable the buttons?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Say you have an array like in comments:
And you have button objects with names in your MC, namely button1, button2, button3. Use the following:
where “disable” is whatever you need to do to disable the button.