Creating items on a card that isn't the current card.

Peter T. Evensen pevensen at siboneylg.com
Mon Jan 23 17:15:21 EST 2006


The point is, my handler wasn't working unless the card was the current 
card. ALL copied images were created with the same ID of 0, which caused 
problem because I am creating a number of them.

Your simple stack works, because you are only creating one image and are 
not using the variable "it" to manipulate the copied image.

I am creating 15-20+ images on the "hidden" card.  It worked to a point, 
but then produced weird and unexpected results.

In stepping through the code, I saw that after a "copy image..." the 
variable "it" contained "image id 0 of card..." (i.e., an invalid ID 
number), whereas when I run the same script with that card as the current 
card,  "it" contained "image id #### of card...", (i.e., a valid image 
ID).  Since all the copied images were being created with an ID of zero on 
the 'hidden" card, renaming them and referencing them does not reliably work.

What I am doing is generating a Mystery Phrase screen, like hang man.

I am placing empty boxes where there are letters, blanks where there are 
spaces, and displaying non-letter characters, like punctuation.

For example, if the phrase was "Lexington, Kentucky"  I was getting:

_________
, , , , , , , , , ,

Instead of
_________,
________

For some reason, changing the file name of the last image on the first row 
to my comma.png was causing all subsequent images to be the comma, rather 
than the blank image (and causing my comma image to disappear).  This is 
evidently due to all the creating images having an ID of 0.

If I run the exact same script after having gone to the card, the images 
are all created with unique IDs and the second result is produced.

I was not able to find your KALA.rev stack to test it out.

At 03:34 PM 1/23/2006, you wrote:
>Maybe I'm a bit thick, but I don't quite see what all the
>fuss is about.
>
>SO . . . I have just 'run up' a really very trite
>demonstration stack which is available from the RRGraphix
>Group:
>
>http://groups.yahoo.com/group/RRgraphix/files/
>
>called REMOTE DECORATING.rev
>
>HOWEVER, if you really want to see 'remote control' in its
>full, mid-blowing potential then download my Master's
>degree stack (KALA.rev) via:
>
>http://members.maclaunch.com/richmond/files.html
>
>I should warn you that this is a prototype GUI for absolute
>no-nothing-about-computer types to author their own
>educational software: there is no 'desktop', no 'menubar',
>no 'start menu', no KDE panel and, in fact not much else -
>but it will create you a few rather basic educational
>stacks by remote control.
>
>sincerely, Richmond Mathewson
>__________________________________________________
>See Mathewson's software at:
>
>http://members.maclaunch.com/richmond/default.html
>_______________________________________
>---------------------------------------------------------------
>The Think Different Store
>http://www.thinkdifferentstore.com/
>For All Your Mac Gear
>---------------------------------------------------------------
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your 
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution

Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-628-4588 


More information about the use-livecode mailing list