I would be very grateful if someone could let me know if, and if so, how you write the action scripting for the last frame of a pre-loader, to make your movie just go to any one of the scenes in the movie at random.
Where myArray is the array that holds all the names of your Scenes.
changeScene pics out a random number from 0 to 4 (since Arrays start counting at 0)
Then the gotoAndPlay says to choose the name in myArray that is in the position of the number produced by changeScene. So is changeScene produces a 3, it will pic out the name in position 3, which would be “4” (count “1” as 0 and keep counting to the right). So it will come out as _root.gotoAndPlay(myArray[3], 1) which in turn will interpret into _root.gotoAndPlay(“4”, 1)
Of course you don’t have to use numbers as names, with an array, you can actually name your scenes.