I recently created a Flash Animation that would randomly play one of three different Flash scenes. Then after each scene, it would go back to the beginning and randomly choose another scene to play. This was all programmed in ActionScript in Flash.
I have a feeling that even though this code is very simple, it will save a little bit of time if I have it stored here for the future.
// First Choose a random number
//from 0 to the number of scenes
num = random(3);
//Depending on which random number
//was chosen, go to a flash scene
trace ( ” no case tested true ” )
(P.S. If this was useful for you, please leave a comment! ;))Tags: AS2, Code, Flash, Flash ActionScript, Programming
Categorised in: Flash ActionScript
This post was written by Ashton