How to Jump Randomly to Frame Labels without Repeats
Wednesday, May 30th, 2007One of the more popular entries of this blog describes How to Jump to a Random Frame Label. The ActionScript 2.0 involved is very straightforward, weighing in at a mere 5 lines. Its sole purpose is to choose a random label once at the beginning, then go to it (then stop). In the Comments section, a visitor named Heather asked for a variation in which the movie starts at a random label, then proceeds to the remaining labels in order, looping around to the beginning, if necessary, to hit each label once. I offered some suggested code, and eventually a number of other visitors asked for yet another variation: how to jump randomly to a whole series of labels — without repeats. That takes a bit more code, but it’s certainly doable. Let’s take a look. Keep reading »




