[squeakland] Request for Help - Question 20100501

Bert Freudenberg bert at freudenbergs.de
Wed Jan 6 11:02:54 EST 2010


On 06.01.2010, at 13:57, Carlos Rabassa wrote:
> 
> 
> My problem would be resolved if I could stop all sounds,  then I would have silence to start the sound for the new page.

Carlos,

you can make yourself a tile that stops all sounds.

1) make a new script, switch it to "textual" mode using its white menu button:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 34417 bytes
Desc: not available
Url : http://lists.squeakland.org/pipermail/squeakland/attachments/20100106/a0a83a93/PastedGraphic-1-0001.png
-------------- next part --------------


2) replace the "^self" line in the script with "SoundPlayer stopPlayingAll", then press Cmd-S to save it:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.png
Type: image/png
Size: 23927 bytes
Desc: not available
Url : http://lists.squeakland.org/pipermail/squeakland/attachments/20100106/a0a83a93/PastedGraphic-2-0001.png
-------------- next part --------------


3) use the new tile in your own script:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-4.png
Type: image/png
Size: 59985 bytes
Desc: not available
Url : http://lists.squeakland.org/pipermail/squeakland/attachments/20100106/a0a83a93/PastedGraphic-4-0001.png
-------------- next part --------------


Explanation:

"SoundPlayer stopPlayingAll" is an expression from the "Squeak" programming language underlying Etoys. By switching a script to "textual" mode you can enter arbitrary statements. This is useful to access functionality not provided by Etoys tiles directly. 

- Bert -



More information about the squeakland mailing list