Webmaster Tutorials

AS3 guide Conditionals

Often when you're writing code their will be times when you need to make decisions in your code. You might want a certain piece of code to execute under a certain circumstance and another piece of code to execute under different circumstances. ActionScript 3.0 uses conditionals to deal with these situations. To simplify ActionScript creates a test asking whether conditions are met, if the condition is met the test will evaluate to true and if the condition is not met alternative action is taken.

Read tutorial