How to "call" textual code from user tile scripts

Karl Ramberg karl.ramberg at chello.se
Mon Aug 12 12:02:59 UTC 2002


>Hi, I am learning squeak and smalltalk. To do so, I am constructing
physics “applets” (similar to the
>java ones on the web).

>Does anyone know of a way to “call” methods written in textual form
from the user tile scripts?

>For example, I would like to get the cosine of a number. The number
would be a variable from the
>user tile scripts. How can I do this?

 

>Ultimately, I would like to extend a morph class, create a instance of
this class from my workspace,
>do some basic animation of this morph with the user tile scripting ,
then call some of the methods
>that I wrote in textual code from the same user tile script.

There is a checkbox on top of the tile scripts that change the mode of
the box so you can type to it. 

Karl



More information about the Squeak-dev mailing list