Image in specialFolderPath("resources") - Can't put into Image
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Image in specialFolderPath("resources") - Can't put into Image
Hi Guys
I have an image file in specialFolderPath("resources") and I am trying to put it into an Image element. I have tried a lot of things and I know it is probably a simple fix but I have tried everything that I can think of and nothing will work. Any help is welcomed!!
Many Thanks,
Googie.
I have an image file in specialFolderPath("resources") and I am trying to put it into an Image element. I have tried a lot of things and I know it is probably a simple fix but I have tried everything that I can think of and nothing will work. Any help is welcomed!!
Many Thanks,
Googie.
Re: Image in specialFolderPath("resources") - Can't put into Image
Hi Googie85,
what did you try so far?
This should work:
Best
Klaus
what did you try so far?
This should work:
Code: Select all
...
set the filename of img "name of your LC image object" to (specialfolderpath("resources") & "/your image.jpg")
...
Klaus
Re: Image in specialFolderPath("resources") - Can't put into Image
Thanks Klaus!!
It works fine, but I am trying to load in a .GIF image. The problem I am having is the image will not animate, rather appears as a still image. Any ideas on how to fix that? I have tried disable and enable image and set the vis of image to true/false.
Thanks!
Googie.
It works fine, but I am trying to load in a .GIF image. The problem I am having is the image will not animate, rather appears as a still image. Any ideas on how to fix that? I have tried disable and enable image and set the vis of image to true/false.
Thanks!
Googie.
Re: Image in specialFolderPath("resources") - Can't put into Image
Hm, that should work.
Try to "start" the animation of the GIF:
To stop it use:
If that does not work, I am out of ideas...
Try to "start" the animation of the GIF:
Code: Select all
set the repeatcount of img "your gif image" to -1
Code: Select all
set the repeatcount of img "your gif image" to 0
Re: Image in specialFolderPath("resources") - Can't put into Image
Thanks for your reply Klaus!!
It didn't work. I will try something else.
Cheers,
Googie.
It didn't work. I will try something else.
Cheers,
Googie.
Re: Image in specialFolderPath("resources") - Can't put into Image
I don't know, but maybe the gif needs to be somewhere in a writable location in order for it to be addressed by LC and maintain knowledge of the frame to display.
Try copying the gif image to specialFolderPath ("documents") on first run, then assign it from there.
Try copying the gif image to specialFolderPath ("documents") on first run, then assign it from there.
-
- VIP Livecode Opensource Backer
- Posts: 7215
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Image in specialFolderPath("resources") - Can't put into Image
You may need to import it directly into the stack. Images called by reference don't always behave the same way.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com