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


in import Log; class Application { private var _log:Log; // force mtasc to compile

function Application(createdBy) { // Re-assigment of _root to Application instance createdBy.__proto__ = this.__proto__; createdBy.__constructor__ = Application; this = createdBy;

setup(); } public function setup() { TRACE("hello world"); } public static function main(createdBy:MovieClip) { var app = new Application(createdBy); } }; // end of class


found here:

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

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. be continued