Just to make your life simpler.
You do not instantiate a class; you instantiate an instance(object) of a class. A class is only a definition and is stored in Flash as a definition which can be instantiated as many times as required. The definition refers to the definitions of the classes that it needs.

Real World example:
When you buy a Chrysler PT Cruiser which is based on the Chrysler Neon platform, they do not send you 2 cars (nor every PT Cruiser). You just get an instance of the PT Cruiser but you can use the Neon maintenance manual for some of the procedures. When you are changing the oil using the Neon manual, a Neon does not appear in your driveway.

Ron

Danny Kodicek wrote:
So, when you instantiate a class that extends other classes, there is only one actual object that's created. So `this` would always return the same object, whether in code written in A or in B.

Makes sense. A much better system than Lingo, which takes a bit of messing
with to make it behave that way.

Danny

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to