ADBRITE ads links
You are here: CodeIdol.com > Flash > Macromedia Flash® ActionScript: Training from the Source > Lesson3.Conditional Logic
Macromedia Flash® ActionScript: Training from the Source
| Lesson 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 oursel...
|
|
| What You Will Learn
In this lesson, you will:
Learn how to use if, else, else if, and switch/case statements to control the flow of a scriptExplore the various operators used in conditional logicScript a project to react to various conditions and...
|
|
| Approximate Time
This lesson takes approximately forty-five minutes to complete.
...
|
|
| Lesson Files
Media Files:
None
Starting Files:
Lesson03/Start/Key01.fla
Completed Project:
Lesson03/Completed/Key04.fla
...
|
|
| Controlling a Script's Flow
Typically, actions in your scripts execute consecutively, from beginning to enda sequence that represents your script's flow. Using conditional logic, you can control this flow by scripting specific actions to execute o...
|
|
| Reacting to Multiple Conditions
The best way to understand conditional logic is to examine it in the context of a simple application. We will use some of the concepts we've learned to script a project that reacts to user interaction.
In our proje...
|
|
| Reacting to User Interaction
So far, all we have done is output the user interaction using a simple trace command. Now we want to expand on that by calling a specific function for each type of user interaction. Specifically, we are going to move a...
|
|
| Detecting the Edge of the Stage
Now that we have our project working, we will add one final feature. You'll notice that in our current version of this project, the target clip keeps moving past the edge of the stage. Now we will add some condition...
|
|
| What You Have Learned
In this lesson, you have:
Learned how to use if, else, else if, and switch/case statements to control the flow of a script (pages 6369)Learned about the operators used in conditional logic (pages 6465)Programmed a project to...
|
|
You are here: CodeIdol.com > Flash > Macromedia Flash® ActionScript: Training from the Source > Lesson3.Conditional Logic
|
|
Related tags
Popular Categories
Unix books and guides
AJAX popular information
C# language guides
Windows books and cookbooks
.......
|
|