[squeakland] Tools to Export Images from Etoys (eventually directly to a Blog Post)
bert at freudenbergs.de
Mon Apr 4 10:09:39 EDT 2011
On 04.04.2011, at 15:20, Steve Thomas wrote:
> How can I detect if a player variable is a book object? (sometimes it is hard to click on the book and if you get another object and try to run the script an exception is thrown).
(var costume class isKindOf: BookMorph) ifTrue: [...]
If you wanted to make it more "user friendly" you could also click on something inside the book and then look up the book itself in the owner chain:
var costume ownerThatIsA: BookMorph
> I was also going to ask how I can handle exceptions in my script and where to get a list of exceptions that could be thrown, but that is a much bigger question ;)
- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the squeakland