I’m working on a project that involves the use of many conditional statements. Unfortunately logic has always been my weakest link. Here is the setup:
The background of the movie is a flowchart style image, with arrows pointing to the next sequential item. The ones along the top are obviously needed to be completed before the ones below it, and follow a series of arrows. Right now I can click on the bubbles and shade them individually, but I’m trying to get it so if you click further down the chart, everything needed to get to that point, becomes shaded.
I’m shading using a black movie clip with its alpha adjusted.
Example of how I shade the buttons:
Button12.onRelease = function() {
if (this._alpha == 0) {this._alpha = 65}
else {this._alpha = 0};
};
An example of what I’m trying (current code that doesn’t work):
if (Button11._alpha == 65) {
Button1._alpha == 65;
Button2._alpha == 65;
Button3._alpha == 65;
Button4._alpha == 65;
Button5._alpha == 65;
Button6._alpha == 65;
Button7._alpha == 65;
Button8._alpha == 65;
Button9._alpha == 65;
Button10._alpha == 65;
}
As I said before I can’t get it to work, it doesn’t come up with any errors, but it doesn’t do as I intend it to. Any and all help is appreciated.
I had it in a while loop for testing purposes, and it would just crash, but it would shade them all without me clicking on anything. Should I be using an if statement?