Re: stop script continues to execute current script

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: stop script continues to execute current script

teefal
mrsteve wrote:
Here is a simple example of the problem: I create a simple two line script, the first line stop's the script, the second hides the object.
Below is the textual version of the script.
script1
self stopScript: #script1.
self hide1

The problem is even though the stop script is first the lines after the stop script still gets executed.

Is this the way Stop (and Pause) are supposed to work?


Yes - start and stop just affect the script's "ticking" status. Scripts always run to completion, they are not interrupted in the middle.




-------------------- m2f --------------------

(from forum)
http://squeakland.org/forums/viewtopic.php?p=12692#12692

-------------------- m2f --------------------

_______________________________________________
squeakland mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/squeakland