Creating items on a card that isn't the current card.
Peter T. Evensen
pevensen at siboneylg.com
Mon Jan 23 15:54:32 EST 2006
I'm trying to have a card create images in a group before the card is
displayed. This happens when an OK button is pressed several cards before
that.
The handler works if I am on the card in question, but if I 'send SetupCard
to card "Card 5"', things are not created properly.
The issue comes in when I do the following:
copy image tImageName of me to group "Mystery Phrase" of me
put "Letter" && i into tImageName
set the name of it to tImageName
The copied image in the group "Mystery Phrase" has an id of 0 if this card
isn't the current card. That seems to goof things up royally (i.e. "it"
is 'image id 0 of group id 3923 of card id 1006 of stack "C:/Projects/Word
Problems/main.rev"' instead of 'image id 3922 of group id 3923 of card id
1006 of stack "C:/Projects/Word Problems/main.rev"' )
I suppose I could "go invisible to card 5" before I do the "send" Is there
any other way? It seems like there should be a way to do this without
having to go to the card invisibly first (and have Revolution create the
correct ID numbers).
Am I missing something?
Thanks!
Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-628-4588
More information about the use-livecode
mailing list