Images

Chipp Walters chipp at chipp.com
Fri Jan 27 18:20:44 EST 2006


Hi Scott,

Group (Bg) Fields can either share text across cards or not depending on 
the sharedText property. Unfortunately, there's no such animal for images.

I guess I'd probably instead of putting an image file into the image, 
rather 'suck it up' as a custom prop of the card, then on preOpenCard 
'spit it out' into the Group (Bg) Image.

IOW, store the binary imagedata in a custom prop, then on preOpenCard do 
something like:

set the imageData of img "myImage" to the uImageData of this card

best,

Chipp

Scott Kane wrote:

> I have the image loading routine working a
> treat now.  But I've hit a snag that surprised
> me.  Once the image is loaded I expected it to
> only appear on the card that called it. However
> the same image appears on every card (even though
> the image is in a group that is set to act as a
> background object) indeed adding a new image
> replaces the previously loaded image.  I would
> have though the image would save as unique for
> each card (as fields do).  Any suggestions gratefully
> received!




More information about the use-livecode mailing list