imageSource Stored in Destination Stack

J. Landman Gay jacque at hyperactivesw.com
Thu Jan 5 00:40:11 EST 2006


Kathy Jaqua wrote:
> Hi Jim 
> 
> Good Idea but it is not what I need.
> 
> I actually need the original copied then pasted
> imageSource saved in the image library at the time it
> is pasted. (It must be a picture of the imageSource). 
> I don't want an image tag or a reference. 
> (OK.., maybe I don't fully understand image tags :-)

What Jim means is that the imagesource in the field isn't really the 
image itself, it is just a tag -- a description -- of the image's 
location. This is exactly how icons in buttons work too; a button 
doesn't contain an image, it just references one that is stored in the 
stack. Copying the field's htmltext to another field will move the tag 
along with the text to the new field, but the image that is stored in 
the original stack doesn't automatically move to the new stack. You will 
have to script the duplication of the image if the new stack doesn't 
already contain it.

The script that copies the field text must also do something like this:

   copy img "myImg" of this cd of stack "originalStack" to this card

Then set the htmltext of the field, and the imagesource will have an 
image available to use.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list