Naming Objects

   

Before you can use objects you must name or identify them. For example, let's say you have three kinds of fruit in front of you: an apple, an orange, and a banana . All three are objects that can be called by name, and they all belong to a bigger group or class called fruit. They would be named as follows :

 Friut.apple Fruit.orange Fruit.banana 

NOTE

Creating an instance name for an object or a class is very similar to the process of creating an instance name for a symbol.


Once you create an instance name, use the keyword new to create a unique name for the object. You can find this keyword in the Actions panel's toolbox. Any object that requires you to make a new instance of that object will include the new command. You can also create your own objects by using existing objects and properties and calling certain functions.


   
Top


Certified Macromedia Flash MX Designer Study Guide
Certified Macromedia Flash MX Designer Study Guide
ISBN: 0321126955
EAN: 2147483647
Year: 2001
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net