Helmut Granda
learning through interaction
learning through interaction
Aug 18th
So I am trying to figure out the following piece of code:
ActionScript:
<pre>in Application.as
import Log;
class Application
{
private var _log:Log; // force mtasc to compile Log.as
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</pre>
found here:
http://www.osflash.org/pipermail/osflash_osflash.org/2005-August/002165.html
So far I have [...]