i have placed this class defining function in my so-called ali-js-tools.js which sits in the ‘jsextensions’ folder;
i can therefore make a new "jenga" object from whatever js code i write;
now, i would like one of the methods of my class "jenga" to output messages from an outlet of js object whose code created the "jenga" object.
in java you can do this by using the "outlet" method of whatever MaxObject. but how do you do this in js?
Pass in the jsthis into jenga’s constructor, storing for later use.
For example, something like the following (warning email client
coding). In general this is the strategy to expose any of the stuff
available to the jsthis object inside shared classes.
// in your max object js code:
var myjenga = newjenga(this);
// in your shared jscode:
this.maxparent = x;
this.foo = function (index, msg)