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
  • PrintPrint
Share this Page URL
Help

Hour 4. Writing Code in Flash > Local and Global Variables

Local and Global Variables

In Hour 3, “Learning to Program,” I mentioned variables. They are little containers for storing information.

Setting Variables

Using variables in ActionScript is easy. All you need to do is assign a value to a variable name. Here is an example:


  

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


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint