View Single Post
  #6  
Old 05-02-2008, 11:53 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I've been scripting for quite awhile and I don't know what the *bleep* ECMAScript is. I doubt anyone knew to coding would either.

I even dislike the syntax of the example you provided. I think catchevent() works just fine and should be expanded to work with scripted events with a function throwevent() or so.

Script A:
PHP Code:
function doSomething() {
  
//stuff
  
throwevent(this.name"DidSomething"params...);

Script B:
PHP Code:
function onCreated() {
  
this.catchevent("System""DidSomething""SystemDidSomething");
}
function 
onSystemDidSomething(params...) {
  
//stuff

__________________

Last edited by Inverness; 05-03-2008 at 12:16 AM..
Reply With Quote