Awesome, dude.  Thanks.

Michael


On Fri, 25 Jun 2010, Greg Brown wrote:

For example, consider a class named Dog with a method named bark.  Let dog.wtkx be a WTKX 
file whose root element is the Dog class.  Can I call the bark method of "this" 
from a script in dog.wtkx?

Yes, you can do this. For example, you could give the Dog instance an ID and 
then call it from script:

<Dog wtkx:id="dog">
   <wtkx:script>
       dog.bark();
   </wtkx:script>
</Dog>

Though generally you would probably do this in an event handler, not inline as 
the file is being processed.


Reply via email to