10 Arrays
Managing Data in Applications
Every application needs to keep track of some amount of information. It may be contact information, a list of current movies, or a host of asteroids and bullets. As explained in Chapter 8, variables act as containers for different types of information. One way to provide storage for application data is to declare the appropriate variables. For example:
var currentUser lD : String ;
var numberOfAteroids : Number ;
It would even be possible to declare enough variables to hold contact information for a group of individuals. Doing so might look like this:
In this way, enough memory could easily be allocated ...
Get Understanding Macromedia Flash 8 ActionScript 2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.