card id and button problem

Klaus Major klaus at major-k.de
Wed Jun 30 11:10:17 EDT 2004


Hi Lars,

> ...
>   open stack "Y"
>   create card
>   set the drawerCardId of button id newButtonId of recent card of 
> stack "MainStack" to it

!!!! see below

> ...
> Then I made the changes you gave below to the script of button to be 
> copied to the MainStack, again, word for word:
>
>   drawer stack "Y" at bottom aligned to center
>   go to card id (the drawerCardId of me) of stack "Y"
> ...
>  on the mainstack card by hand - just what I'm trying to do away with 
> here).  This is the error
>
> Type	Chunk: no such object
> Object:	n
> Line:	         set the drawerCardId of button id newButtonId of recent 
> card of stack "MainStack" to it
> Hint: 	button id 1153 of card id 1152 of stack 
> "/Users/larsbrehmer/Desktop/uusEesti/uusEesti2.rev"
>
> I assume laughable, but is it fixable?

First no, last yes :-)

This is the content of IT in the example above:

card id 1004 of stack "Stack 1088607791" ## or something like that...

So you will have to script:

>   drawer stack "Y" at bottom aligned to center
   go to card id (WORD 3 of the drawerCardId of me) of stack "Y"

Tested and works :-)


Best form germany

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list