Re-5: abort scripts

runrev260805 at m-r-d.de runrev260805 at m-r-d.de
Thu Jun 14 03:48:43 EDT 2007


Thanks, Scott. 

That works.


I have to say it again: Rev is so powerfull, if one knows how to do it. 



Regards,

Matthias



-------- Original Message --------
Subject: Re: Re-3: abort scripts (13-Jun-2007 23:38)
From:    Scott Rossi <scott at tactilemedia.com>
To:      runrev260805 at m-r-d.de

> Recently, runrev260805 at m-r-d.de wrote:
> 
> > I have a stack with one card. The card contains 4 Buttons. 3 Buttons start
> > routines, which take about 5 minutes each to finish. Clicking on the fourth
> > button shall abort the running sript of the button, which was pressed.
> > 
> > Thought, i could solve this with 'send "exit to top" to button btnToStop',
> > where btnToStop contains the button name. But this does not work.
> > 
> > How can i achieve this?
> 
> Assuming your routine is a loop of some kind, you could do it by setting a
> custom property of the card, similar to this:
> 
> [routine button scripts]
>  on mouseUp
>    set the allowProcessing of this cd to true
>   doMyRoutine
>  end mouseUp
> 
>  on doMyRoutine
>     if not the allowProcessing of this cd then exit to top
>     -- do myStuff
>     send "doMyRoutine" to me in 5 millisecs
>  end doMyRoutine
> 
> 
> 
> [cancel button script]
>  on mouseUp
>    set the allowProcessing of this cd to false
>  end mouseUp
> 
> 
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 
> 
> 
> 
> To: use-revolution at lists.runrev.com





More information about the use-livecode mailing list