Switch in ActionScript
Our example will demonstrate how to use switch
statements that express conditionals across many branches.
Here’s a basic switch
in ActionScript.
To run the program, compile and run your ActionScript code using Adobe Flash or Apache Flex.
Now that you understand how to use switch
statements in ActionScript, let’s explore more functionalities of the language.