loading images

Chipp Walters chipp at chipp.com
Mon Nov 4 17:01:01 EST 2002


Oliver,

Check out:

hide img "hiddenImage"
answer file "Select Image to Display"
set the filename of img "hiddenImage" to it

then you can show/hide img "hiddenImage" anytime you want,

Chipp

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Oliver Hardt
> Sent: Monday, November 04, 2002 3:19 PM
> To: use-revolution at lists.runrev.com
> Subject: loading images
> 
> 
> problem: i want to load an image but i don't want to display it 
> immediately.  currently, i am using the approach lined out below.
> 
> 2 questions:  (1) any better scripting out there?  (2) when i import 
> an image with "import paint ...", how do i get the ID RR assigned to 
> the image?
> 
> thanks, olli.
> 
> 
> 
> current approach:
> 
> 
>    answer file "Select Image to Display"
>    put it into lFileName
>    if lFileName is not empty
>    then
>      lock screen
>      import paint from file lFileName
>      set the itemDelimiter to "/"
>      put the last item of lFileName into lImageName
>      hide image lImageName
>      unlock screen
>      wait 2 seconds
>      show image lImageName
>    end if
> _______________________________________________
> 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