I am a newbie at this and this is the best site on the web for learning. So I hope someone can help me out.
I am designing a set of instructions. Each instruction movie clip is in a different place on the stage. There is a numbered button to go with each step and there are 13 steps. Each step should fade in when its button is pressed and dim when the next button is pressed. I would also like all instructions that follow a button to alpha to 0. For instance if you are on 4 and click on 2, 4 and 3 should alpha to 0. On the seventh button I need to have the first 6 instructions alpha to 0.
Here is the code for the first 6 buttons:
_root.one_btn.onRelease = function() {
_root.one_mc.gotoAndPlay(“lit”);
}
_root.two_btn.onRelease = function() {
_root.one_mc.gotoAndPlay(“dim”);
_root.two_mc.gotoAndPlay(“lit”);
}
_root.three_btn.onRelease = function() {
_root.one_mc.gotoAndPlay(“dim”);
_root.two_mc.gotoAndPlay(“dim”);
_root.three_mc.gotoAndPlay(“lit”);
}
_root.four_btn.onRelease = function() {
_root.one_mc.gotoAndPlay(“dim”);
_root.two_mc.gotoAndPlay(“dim”);
_root.three_mc.gotoAndPlay(“dim”);
_root.four_mc.gotoAndPlay(“lit”);
}
_root.five_btn.onRelease = function() {
_root.one_mc.gotoAndPlay(“dim”);
_root.two_mc.gotoAndPlay(“dim”);
_root.three_mc.gotoAndPlay(“dim”);
_root.four_mc.gotoAndPlay(“dim”);
_root.five_mc.gotoAndPlay(“lit”);
}
It is really buggy. I keep thinking there has to be an easier way to do this. I have looked into arrays, but I can’t seem to find a situation with specifically placed movie clips. I am eager to learn. Please help.