Klaus,

Is the background ON the card you're trying to delete? If so, that might
affect the script.

My suggestion is to use "send" to delete the card (I do this all the time):

on mouseUp
  send "delete this card" to me in 10 milliseconds
end mouseUp


Ken Ray
Sons of Thunder Software
Email: [EMAIL PROTECTED]
Web Site: http://www.sonsothunder.com/


> From:     Klaus Major <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 3 Jul 2003 18:26:42 +0200
> To:     [EMAIL PROTECTED]
> Subject: Re: script trouble on OS X
> 
> Hi Klaus,
> 
>>> Hi folks,
>>> 
>>> i have a little script that works very fine on win,
>>> but always throws an error on OS X...
>>> Can someone please help out?
>>> I have a popup btn where one can delete the current cd
>>> in a stack. One menu is "loeschen" (delete) and this handler
>> 
>> important additional info:
>> 
>> The button is part of a bg and NOT part of the card that i try to
>> delete.
>> 
>>> on loeschen
>>>   answer "do you really want ..." with "Ja" or "Nein"
>>>   if it is "Nein" then exit loeschen
>>>    if the short name of this cd <> "menu" then delete this cd
>>>    akt ## creates a new index
>>>    save this stack ## well, does what it says...
>>> end loeschen
>>> 
>>> i get this error on OS X
>>> 
>>> stack locked or object's script is executing
>>> 
>>> at "...delete this cd"
>>> 
>>> I can delete the card with the msg AND that SAME script works
>>> fine on windows2000...
>>> 
>>> The stack was created on Windows and copied over to my mac.
>>> Everything worked fine, of course, except this "delete" handler.
> 
> This is a mistrey indeed.
> 
>> Any hints are still very welcome :-)
> 
> i can offer no hint but a working workaround ;-)
> 
> ...
> put the num of this cd into dn
>  if the short name of this cd <> "menu" then send loesch to me in 1 ##
> end loeschen
> 
> on loesch
>  delete this card
>  akt
>  save this stack
> end loesch
> 
> Works fine on X and win.
> 
> But don't know why the first scripts works on win and not on X!???
> 
>> Regards
>> 
>> Klaus Major
>> [EMAIL PROTECTED]
>> www.major-k.de
> 
> Hope that helps ;-)
> 
> 
> Regards
> 
> Klaus Major
> [EMAIL PROTECTED]
> www.major-k.de
> 
> _______________________________________________
> use-revolution mailing list
> [EMAIL PROTECTED]
> http://lists.runrev.com/mailman/listinfo/use-revolution

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to