Rob Cozens wrote:

I currently have a 'control' that represents a template class (each is self registering). When the developer calls createInstance a clone of that control is created and 'the script' is modified to accept messages in the form of <instance name>.<method> at this time the script property is set and added to the backscripts. This does not seem to work in a stand-alone due to script limits any ideas on alternatives to this?

Script the handler to derive <instance name> & <method> from a custom property or global variable which is set when the clone is created:


on createInstance
   global instanceAndMethod
  ...
  clone control x
  put myInstance&"."&myMethod into instanceAndMethod
end createInstance

FWIW, I've been advised by Scott Raney not to rely on dot notation in my own handler names, as future versions of the engine may include OOPS extensions which may affect existing uses of dot notation in unpredictable ways.


--
 Richard Gaskin
 Fourth World Media Corporation
 ___________________________________________________
 Rev tools and more:  http://www.fourthworld.com/rev
_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to