<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>If you're talking about defining your own object types via classes, you need to make sure that the .ck file containing your defined class gets added to the virtual machine first.  The best way to do this is to instantiate the VM in one terminal by using the comand chuck --loop.  After that, open another terminal and type chuck + Class.ck (replace class with whatever your filename is).  Then go ahead and add the client (whatever file is utilizing your defined class).  I'm not sure if this is what you're asking, and I'm new to ChucK myself, but hopefully this gets you started on the right track.  The other way is to just type "chuck Service.ck client.ck" or whatever (it is necessary that the class containing your user-defined object is first).  This works as well, but it's not as flexible on-the-fly as
 running chuck --loop.<br></span></div><div><br></div>  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> henrique matias <hems.inlet@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> chuck-users@lists.cs.princeton.edu <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, April 17, 2012 9:12 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [chuck-users] different classes and files talking to each other<br> </font> </div> <br>
<div id="yiv2033351823">Hello folks, hope everything is great over there! ( :<div><br></div><div>Am new to chuck, needless to say am impressed! </div><div><br></div><div>Am a bit confused how to share and control different classes and files from a central "machine".</div>

<div><br></div><div>The first idea was to create a static Event var and put every class listening to this event, but unfortunately we still can't instantiate non-native objects as static.</div><div><br></div><div>Would someone please point me to some basic structure/example?</div>

<div><br></div><div>Thanks a lot! Happy chucking!</div>
</div><br>_______________________________________________<br>chuck-users mailing list<br><a ymailto="mailto:chuck-users@lists.cs.princeton.edu" href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br><br><br> </div> </div>  </div></body></html>