• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Introduction to Object-Orien... > Creating and Using Objects

Creating and Using Objects

Flash 5 uses a number of built-in objects. These include everything from the most basic object of them all, the Object object, to the XMLSocket object, which handles the transfer of Extensible Markup Language (XML) data over a TCP/IP socket. The 15 built-in objects in Flash 5 are as follows:

  • Array. Holds a list of data.

  • Boolean. Acts as an object wrapper to True/False values. True/False values are primitive data types. By acting as a wrapper, the Boolean object adds object functionality, in the form of methods, to this data type.

  • Color. Used to modify the color of a movie clip with code.

  • Date. Holds and formats all types of date and time information.

  • Key. Used to track keyboard presses.

  • Math. Acts as a library for complex math operators and functions.

  • Mouse. Used to show or hide the mouse pointer.

  • MovieClip. Points to an actual movie clip on the Stage.

  • Number. Acts as an object wrapper to normal numbers.

  • Object. A blank object with no methods or properties.

  • Selection. Used to set and get information about focus and selected areas of text fields.

  • Sound. Controls the playback of a sound, including pan and volume.

  • String. Acts as an object wrapper to normal strings.

  • XML. Enables the loading, manipulation, and sending of XML data.

  • XMLSocket. Enables the sending and reception of XML data over a socket connection.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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