O'Reilly logo

Macromedia® Flash® 8 ActionScript: Training from the Source by Danny Patterson, Jobe Makar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Conditional Logic

Every day we’re confronted with all kinds of situations, large and small, that require us to make decisions about what actions we’ll take. Although we might not be doing it consciously, we’re constantly saying to ourselves, “If this is the case, I need to do that.” If it’s hot, wear shorts; if it’s rainy, wear pants; and so on. This process of taking different actions based on current conditions (circumstances) is known as conditional logic, and it’s something we all apply naturally.

Conditional Logic

In this lesson we will create a simple project that will allow you to move a MovieClip onstage using the arrow keys on the keyboard.

Conditional ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required