This content has been marked as final. Show 5 replies
Keep track of which movieclip is pressed and change the color of movieclip to black at run time itself by using color property of movieclip.
Ok, thanks. Could you please give some hints on how to write this code? What I want is the button to go black when clicked and then go back to grey when another one is clicked...
that is very easy to do that.
First u assign a separate variable for each button (or) keep an array where its length is total no of buttons instead of variables.Store 0 as values for all buttons.
When one button is clicked make the index for that button to 1 and if another button is clicked make the index for that button to 1 and remaining values to 0.
So,write a function to check the values in array and if 1 is there change the color of that button to grey and other buttons to black.
Try this and tell me whether it works or not.
Sorry, but I don't know how to write this code. Would you? And I think each button already have an individual instance name if that helps. Please take a look at the file if you have the time. Thanx.
Sorry ya.I am busy with my project .If I have time I will provide the code for u .Ok Dont mistake me.