View Single Post
  #11  
Old 09-27-2007, 10:02 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
Quote:
Originally Posted by Novo View Post
An easy way to fix this is having an event each time a variable changes... Such as:

PHP Code:
function variableChangedvarNameoldValuenewValue )
  {
  
triggerclient(stuff_here"updateVar"this.namevarNamenewValue );
  } 
Then having the clientside find the TStaticVar name:

(@ this.name ).(@ varName ) = newValue;

The this.name should be matching on both clientside and serverside for this to work, however... But it would be one method to do it.
That was my first thought, I even suggested a hard-coded onVarChange() event for this, however I'm sure having this feature integrated into Graal would make it much more efficient as Graal is already synchronizing serverr. and client. variables.
__________________
Reply With Quote