NOTICE: ActionScipt No Longer Supported
These blog posts are for ActionScript, which is a programming language for Adobe Flash Player. Unfortunately, Adobe Flash is no longer supported for web applications, so this information is likely not very useful to most developers. We are keeping it for those who still enjoy ActionScript and for posterity. We named our company after it, after all.
Flash Random Scene ActionScript8 Comments
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 ” )