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

WHY LOOPS ARE USED

Loops enable Flash to perform an action (or set of actions) repeatedly—which means that with just a few lines of ActionScript, you can force an action to be executed several thousand times! In ActionScript, you can use loops for any of the following—many of which would be difficult or impossible to perform without them:

  • To create dynamically generated drop-down lists

  • To validate data

  • To search text

  • To dynamically duplicate movie clips

  • To copy the contents of one array to a new array

  • To detect collisions in games between projectiles and objects


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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