Hi. I am pleased to request help from all of you there.
Let’s say i have an some movie clip objects, named A,B,C,D,E respectively.
Also, asssumed i have 3 arrrays, globally defined with
Array1={‘A’,‘B’};
Array2{“B”,“C”};
Array3={“C”,“D”,E",“B”};
Finally, i have some buttons there, both will be used to trigger the movie clip to change it’s alpa value.
Now here is the problem, when i click on button1, it will search in Array1, and those elements match the object name will be triggered.
For example, i click on button1, and it search Array1, which contains elements A, B. With these elements, it only match movie clip object named A and B only.
So as a result, only these two objects are triggered.
Can you let me know what is the concept to run this? The requirement must use the elements in an array to trigger an object.
For more information, i actually need this concept to create a Search Algorithm, such as breath first search and depth first search method. So after it find a solution path from A to B and C, which these similar to array1={“A”,“B”,“C”}, so only the node A, B and C will be highlighted, and a line from A to B and B to C is drawn to visually show the path.
Thanks. I look forward to hear from you soon.