HTML    CSS    PHP    Bootstrap    JavaScript    Flash    Dev Tools      

The IF Statement - Part 1

Current Time:   00:00 / Total Time:   00:00

Seek Bar Volume

Do you have a question or comment on this, or any tutorial Contact Support

We are always looking for input on our tutorial content. If you have a suggestion, comment, additional information on this topic that you feel should be added, drop us a line. We appreciate your input.

Title: The IF Statement - Part 1

Category: Flash
Topic: Essential Training
Publish Date: 2015-03-09
Views: 34
Author: Mike King

Description

This is Part 1 of a 2 Part series. Now we begin to examine conditional statements. The IF statement allows the application to make decisions as our ActionScript code executes. These determinations or decisions are made based on the current conditions of the application, most developers use conditional statements to control the flow of the code as it executes. In this tutorial we discuss how conditions are met in our ActionScript code, we discuss the different types of operators, both comparison and conditional that can be used in conditional statements for their evaluation. We also discuss how ActionScript can determine the position of an object, and then based on that position execute different code structures. We demonstrate the IF statement both with and without using an ELSE statement. We also demonstrate using multiple conditions in our evaluation of the IF statement.