Conditional Logic






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.

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 logic is a critical component of interactivity. It allows you to program your project to react intelligentlyto the movement or position of the mouse, to the current day of the week, and to many other dynamic conditions that exist as your movie plays. By employing conditional logic, you transform simple linear presentations and animations into dynamic projects that offer a unique experience each time they're viewed.

In this lesson, we'll introduce you to some of the ways in which you can use conditional logic to bring about graphical changes in your movies based on varying conditions.



 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows