• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Loops

The syntax for creating loops in ActionScript is a little more complex than the simple if statement. Fortunately, it is almost identical to how loops are created in languages such as C, C++, and Java.

The for Loop

The primary type of loop is the for loop. It looks like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint