RE : [Squeakland] newbie(ish) question (buttons)

Dreyfuss Pierre-André (EDU) pierre-andre.dreyfuss at
Fri Feb 24 11:28:38 PST 2006

Hi Kelly,
A simple way to do this is using two buttons one for run and one for stop.
In the script for run you hide the button for run and show the button for stop
In the script for stop ou hide the button for stopand show the button for run
Then put the buttons at the same place.
>From the menu of a script editor, you  can get a button for running the script.
The commands hide and show are in the miscelanous category
see attached project


De: squeakland-bounces at de la part de Kelly
Date: ven. 24.02.2006 13:05
À: squeakland at
Objet : [Squeakland] newbie(ish) question (buttons)

Hey guys,
Need a little help. I am trying to figure out how to use or (re-use buttons). I have a button to fire a script. 
eg I have a sketch and when you press the button it runs around the playfield. 
I want to be able to click the button a second time to stop the script. 
I have tried many things but just cannot quite get there. Any suggestions?? Thanks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example stop
Type: application/x-zip-compressed
Size: 40688 bytes
Desc: example stop
Url :

More information about the Squeakland mailing list