• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Object Statements

This section covers a couple of the statements associated directly with objects (which were discussed in Chapter 8, “Welcome to ActionScript 2.0”). These include the with statement and the for in statement.

The with Statement

The with statement is for controlling multiple properties or methods of an object without the hassle of typing the object over and over again. Just place the object's name in the parentheses, and the properties and methods listed between the brackets are those affected for that object. Here's an example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint