Hello All,
I will try an dexplain my problem as best I can.
I am used to using mc’s as buttons now and scripting them accordingly.
E.g.
btn_1.onPress=function(){
gotoAndPlay();
}
Now, I am making a lot of buttons that exist at the same time, so I want the buttons that aren’t curently active to be disabled, so I script like this, FOR EACH BUTTON:
btn_1.enabled=false;
btn_2.enabled-true;
btn_3.enabled-true;
etc…
My problem is, I am in situation where I have up to 15 buttons and I find I have to script each one which means I am having to type an enormous amount of code. I simple do not know how to economise my AS. Top that off with the fact that each button must also have a gotoAndStop function added and I am ending up with 300 + lines of code!! Just for the buttons!!
Can someone help me find a way to write a compact script for this situation??
Many thanks
marll