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 7. Using Arrays and Loops in ActionScript 3.0

7. Using Arrays and Loops in ActionScript 3.0

Lesson overview

In this lesson, you will learn to do the following:

  • Associate a movie clip symbol in the library with an ActionScript class.

  • Create ActionScript arrays to store, manipulate, and reference lists of data from a single variable.

  • Use methods of the Array class to store and remove references to MovieClip instances and their properties.

  • Create for loops to control the repetition of ActionScript.

  • Add MovieClip instances to the Stage from the library using ActionScript.

  • Use ActionScript to drag and drop movie clips.

  • Use the hitTestObject() method to detect when two movie clips are overlapping.

  • Use a for loop to cycle through an array and check the properties of its elements.

  • Create a simple game with scoring and outcome feedback given in text fields.

This lesson will take approximately 3 hours.


  

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