okay, I have six invisible buttons over a movie clip on my main timeline. Each on of those buttons calls multiple movie clips to play on a rollover. The problem I’m having is figuring out how to stop a rollerover action that happens on button 1 when the user rolls over button 2 or any other button. I’m wondering if there is a way to do this with variables.
it’s a for loop, especially useful for cycling through an array.
the first part (j=0) is the initial declaration, the second (j<_root.movies.length) is the test which it will run to see whether to continue running the loop or not, and the third (j++) is what it should do at the end of each loop, in this case increment j by 1.
so it runs the loop with j equaling 0 and will evaluate the first (0 index) element in _root.movies, and tell it to gotoAndStop(1). then it will increment j, test it, see that’s it’s still less than the length of _root.movies so run the code again. with j equaling 1. etc etc, until j = _root.movies.length, then the test has failed and it will move on to the next line in the code - after the for loop.