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 15. Dynamic ActionScript > Dynamic References to Variables and Methods

15.3. Dynamic References to Variables and Methods

Because dynamic instance variable names are often not known until runtime, ActionScript provides a way to specify a variable's name using an arbitrary string expression. The following code shows the general approach:

someObject[someExpression]


  

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