Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 14. Iteration and Repetition > The for Loop Statement

The for Loop Statement

The for loop statement is one of the most common loop statements used in ActionScript. The for loop executes a block of code while it iterates through a specific range of values. To iterate through a range of values, you must supply three expressions to the loop:

  • An integer variable

  • A condition that checks value of the integer

  • An expression that changes the integer value


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint