Storing images

Monte Goulding monte at sweattechnologies.com
Tue Feb 4 20:13:01 EST 2003


Would it be possible to embed the image on one card (like
> a PICT resource or whatnot), and then reference that image other places
> in the stack (to avoid "re-embedding bloat")?
>
Hi Jim

Using a PICT resource is how you do it HyperCard. In Rev there is an image
control. The image data that the image control displays can be either
imported into the image control and saved with the stack or you can set the
fileName property of the image to use an external file.

To answer your question: Each control has an id. You can use the id of an
image as an icon reference in a button. So if you want to display the image
again you find out the id of the image then create a new transparent button
and set the icon of the button to the id of the image.

Cheers

Monte




More information about the use-livecode mailing list