novice question re "marked" and customkeys

Bob Sneidar bobs at twft.com
Thu Mar 31 15:31:16 CDT 2011


Okay I was going to make a demo stack of how to do this, but I have run across a problem someone was talking about earlier and I didn't get it then but I sure do now! 

In a button as part of a background group on a card I have:

On mouseUp
   put the id of this card into theFirstCard
   go next
   put the id of this card into theNextCard
end mouseUp

THEY ARE BOTH THE SAME!!!!! How can that be? How can I get the ID of the CARD THAT IS CURRENTLY SHOWING? Not the CARD THAT THIS SCRIPT STARTED AT? (not shouting just capitalizing for emphasis). 

Bob


On Mar 31, 2011, at 10:18 AM, Timothy Miller wrote:

> Hey dudes,
> 
> The "marked" property is so easy to use. "go next marked" and "unmark all cards" are so fast and foolproof! Very handy.
> 
> I'm wondering if I can somehow define my own versions of "marked"
> 
> E.g., in a hypothetical stack, the "marked" of cards 3, 10, 22 and 99 is "true"
> 
> I somehow define my own properties, like "barked" and "darked"
> <snip>




More information about the use-livecode mailing list