How to go to newly cloned card?

Thomas McGrath III 3mcgrath at adelphia.net
Sat Feb 7 19:45:18 EST 2004


On Feb 7, 2004, at 5:45 PM, Mark MacKenzie wrote:

> My most recent iteration is:
>
> on mouseUp
>  if there is a card "Empty Card" of this stack
>  then
>    go card "Empty Card"
-- end if
-- if there is no card "Empty Card" of this stack
  -- then
else
>    clone card "BulletWeightsMasterCard" of this stack
>    set the name of it to "Empty Card"
    go card "Empty Card" of this stack in 30 milliseconds
>  end if
> end mouseUp
>
I had intermittent problems with the go card right after the setting of 
the name and was told to use the in 30 milliseconds which seems to work 
all the time for me. The else just replaces three lines of code. :-)

Tom

Thomas J. McGrath III
SCS
1000 Killarney Dr.
Pittsburgh, PA 15234
412-885-8541



More information about the use-livecode mailing list