Aug 18

So I am trying to figure out the following piece of code:

Actionscript:
  1. <pre>in Application.as
  2. import Log;
  3. class Application
  4. {
  5. private var _log:Log; // force mtasc to compile Log.as
  6.  
  7. function Application(createdBy)
  8. {
  9. // Re-assigment of _root to Application instance
  10. createdBy.__proto__ = this.__proto__;
  11. createdBy.__constructor__ = Application;
  12. this = createdBy;
  13.  
  14. setup();
  15. }
  16. public function setup()
  17. {
  18. TRACE("hello world");
  19. }
  20. public static function main(createdBy:MovieClip)
  21. {
  22. var app = new Application(createdBy);
  23. }
  24. }; // end of class</pre>

found here:

http://www.osflash.org/pipermail/osflash_osflash.org/2005-August/002165.html

So far I have been recommended to read the following article:

http://www.quantumwave.com/flash/inheritance.html

The article well covers the subject of inheritance in Flash 5 and MX. My only concern is that as the article points out using inheritance in this way it will be only an overload to the application.
..to be continued