Flash AS3 Tutorials Center | Interesting Flash Animation Tutorials | Valuing Flash Animation Tutorials | Flash ActionScript and Animation Home

AS3 Beginner Tutorials | AS3 Basic Lessons | AS3 Valuing Courses | AS3 Components Tutorials | AS3 and PHP Interaction Tutorials
AS3 Practical Tutorials | AS3 Animation Techniques | AS3 Transition Effects Tutorials | AS3 Download Upload Files | AS3 Particle Systems
Communication Between Flash Movies with AS3 | AS3 and JavaScript interaction | AS3 Matrix Transformation | AS3 Physics Simulation Tutorials

Flash ActionScript 3 For Loop Statement Tutorial

Looping statements are very powerful in all computer languages. It allows the program to perform some specific tasks repeatedly.

The for loop is the most commonly used loop statement in Flash ActionScript. It allows the program to iterate through a variable for a specific range of values. Three expressions are required in a for statement:

- a variable set to an initial value,

- a conditional determines when the looping ends, and

- an expression changes the value of the variable with each loop.

Structure of a For Loop Statement:

The For Loop Statement using in Flash ActionScript is explained in the following diagram:

Flash ActionScript For Loop Statement

The following is a typical and practical example of a for loop statement:

Flash ActionScript For Loop Statement Example


This Flash ActionScript tutorial provide an introduction of a For Loop statement.

flash actionscript tutorial, flash web page design tutorial