pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: referencing the object behind the wtkx
Date Fri, 25 Jun 2010 12:41:00 GMT
> 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">

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

View raw message