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

What Is a Variable?

A variable is a “container” for storing data. Variables store information such as numbers, text, or references to an object or another variable (Figure 2.1). In order to work with any type of data or object instance in ActionScript, the information is stored in, or referenced by, a variable. Every object or piece of information in ActionScript is a variable at its core.

Figure 2.1. Variables are containers for storing information and instances of objects.



  

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