[Squeakland] event capture, batched screen updates, wait

Bert Freudenberg bert at freudenbergs.de
Thu Nov 1 03:59:17 PDT 2007


On Nov 1, 2007, at 6:57 , Timothy Falconer wrote:

> Hi all,
>
> Three questions about etoys.
>
> First, is there a way I can capture the event of turning a page in  
> a book to fire off a script?   Specifically:
>
> 1. click next to go to page4
>
> 2. this fires page4.startTheFun
>
> 3. click prev, then click next again
>
> 4. fires page4.startTheFun again

Don't know - I'll let others answer this.

> Second, when looping within a script, it appears that the screen  
> updates are batched.  If I do "repeat 10 ... forward 10", it looks  
> the same as if I did "forward 100".  Is there a way around this, or  
> do all screen updates happen on a clock tick.

Disable the "batchPenTrails" preference. We now changed the default.

> Last, is there a way to wait a set amount of time, other than  
> rolling my own "wait" using a variable?

Not in this version of Etoys, no.

- Bert -





More information about the Squeakland mailing list