Associating a file with an Image Object

David Burgun dburgun at dsl.pipex.com
Tue Jun 14 08:15:42 EDT 2005


Hi,

Thanks for that! It now works for JPEG files but not TIFF for some 
reason, do you have to do something special to attach a TIFF file to 
an Image Object?

And thanks Eric for the pointer to your web site, I will take a look at it now.

All the Best
Dave


>Hi David,
>
>>Hi All,
>>
>>I want to be able to choose and image file and have that image 
>>appear in an "image" object. I can't seem to find out how to do 
>>this! I have the following script on a "Choose" button:
>>
>>on mouseUp
>>answer file "Please select an Image"
>>put it into field "FilePathName"
>>
>>--
>>--  Now I want to set the image file selected by the user to be 
>>displayed in "Image1", the following doesn't work!
>>--
>>set the text of image "Image1" to it
>>end mouseUp
>>
>>Could anyone tell me how to acheive this?
>
>yes, you have two options:
>1. reference the image, just set the filename...
>2. copy that image into your stack
>
>on mouseUp
>    answer file "Please select an Image"
>    put it into field "FilePathName"
>    ##1.
>    set the filename of img "Image1" to it
>
>    ##OR
>    ##2.
>    ## put url("binfile:" & it) into img "Image1"
>end mouseUp
>
>Hope that helps.
>
>>Thanks a lot
>>Dave
>
>Regards
>
>Klaus Major
>klaus at major-k.de
>http://www.major-k.de
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list