Associating a file with an Image Object

Brian Yennie briany at qldlearning.com
Tue Jun 14 07:52:00 EDT 2005


David,

What you're looking for is the "fileName" property:

answer file "Please select an image"
if (there is a file it) then
     set the fileName of image "Image1" to it
end if

- Brian

> 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?
>
> Thanks a lot
> Dave
> _______________________________________________
> 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