This content has been marked as final. Show 5 replies
that's an interesting question. my first guess, and it's only a guess, would be
because "me" and "this" are syntacticly approximate. but i've found that sometimes you still have to use "me" so maybe
but again this is all guess work. i've never had occasion to add behaviors dynamically so i'm out of my element. at any rate i hope you figure it out. please let us know what you discover.
// this is the constructor function
this.SomeField = x;
SomeClass.prototype.mouseDown = function()
trace ('You clicked ' + this.toString());
obj = new SomeClass(1);
If you want to add an instance using Lingo, then I think you need to create a wrapper function to return the object (there might be a more direct method, I just can't think of it right now):
return new SomeClass(x);
-- Lingo Script
obj = GetSomeClass()
Thanks for the replies, everyone!
Points for effort :-)