images din't appear when files transfered
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
images din't appear when files transfered
hi... i'm a begineer
i created a livecode file where i put images on stacks...
the problem is the images didn't appear when i use other computer to open the file
what's the problem?
tq
i created a livecode file where i put images on stacks...
the problem is the images didn't appear when i use other computer to open the file
what's the problem?
tq
Re: images din't appear when files transfered
Hello snarf
Sounds like you put the images on the stack by reference, instead of importing them into the actual stack as controls.
Doing this is fine, but you have to keep at least 2 things in mind.
1. the images have to be on the other computer as well
2. the path the reference uses needs to be the same on both systems.
So, for example, if the pictures on your computer are in "Documents/myPictures", then those same pictures need to be on the other computer in "Documents/myPictures". One way to do this is to copy the pictures into a zip file with the directories all laid out and use a relative path. Another would be to do the above, then when your program starts, have it copy the pictures to a specialFolderPath.
You can find both relative path and specialFolderPath in the dictionary.
Sounds like you put the images on the stack by reference, instead of importing them into the actual stack as controls.
Doing this is fine, but you have to keep at least 2 things in mind.
1. the images have to be on the other computer as well
2. the path the reference uses needs to be the same on both systems.
So, for example, if the pictures on your computer are in "Documents/myPictures", then those same pictures need to be on the other computer in "Documents/myPictures". One way to do this is to copy the pictures into a zip file with the directories all laid out and use a relative path. Another would be to do the above, then when your program starts, have it copy the pictures to a specialFolderPath.
You can find both relative path and specialFolderPath in the dictionary.
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: images din't appear when files transfered
Welcome to this forum,
There is two ways to import images:
One is a reference to an image file on your hard disk (i think that is the case for your stack. You may verify this in objects inspector which shows the filename of your image.
Did you import your images with "import referenced control" menu?
Second way is by paste or by "import file as control" menu. In this case your images not linked to a filename
Both works but referenced way is better if you have a lot of images.
Best regards
Jean-Marc
There is two ways to import images:
One is a reference to an image file on your hard disk (i think that is the case for your stack. You may verify this in objects inspector which shows the filename of your image.
Did you import your images with "import referenced control" menu?
Second way is by paste or by "import file as control" menu. In this case your images not linked to a filename
Both works but referenced way is better if you have a lot of images.
Best regards
Jean-Marc
Last edited by jmburnod on Thu Apr 12, 2018 4:58 pm, edited 1 time in total.
https://alternatic.ch
Re: images din't appear when files transfered
tqvm... ok i got it...
but using the 'import as control' also got problem.. the resized images that i put on the stack will back to their original sizes which are different from the intended sizes each time i open the file... can u please explain this to me? tqvm...
but using the 'import as control' also got problem.. the resized images that i put on the stack will back to their original sizes which are different from the intended sizes each time i open the file... can u please explain this to me? tqvm...
Re: images din't appear when files transfered
yes... but the image size goes back to the original size each time i reopen the file... and it different from my intended image size...jmburnod wrote: ↑Thu Apr 12, 2018 4:49 pmWelcome to this forumThere is two ways to import images:the problem is the images didn't appear when i use other computer to open the file
One is a reference to an image file on your hard disk (i think that is the case for your stack. You may verify this in objects inspector which shows the filename of your image.
Did you import your images with menu "import referenced control" ?
Best regards
Jean-Marc
Last edited by snarf on Thu Apr 12, 2018 4:57 pm, edited 1 time in total.
Re: images din't appear when files transfered
Hi snarf,
welcome to the forum!
To avoid resizing do this:
1. Resize your image(s)
2. Then go to the inspector for the image(s) and check "lockloc" (Lock size and Position) on the "Position" tab.
That's it, no more unwanted resizing!
Best
Klaus
welcome to the forum!
To avoid resizing do this:
1. Resize your image(s)
2. Then go to the inspector for the image(s) and check "lockloc" (Lock size and Position) on the "Position" tab.
That's it, no more unwanted resizing!
Best
Klaus
Re: images din't appear when files transfered
tq... but sorry, i didnt find the 'Position' tab...
Re: images din't appear when files transfered
The one with the "cross" sign.
For images the 5th tab from the left: Basic, Custom, Colors, Effects, Position, ...
The checkbox at the top of that tab.
For images the 5th tab from the left: Basic, Custom, Colors, Effects, Position, ...
The checkbox at the top of that tab.
Re: images din't appear when files transfered
What on earth does tq and tqvm mean?
Re: images din't appear when files transfered
tq = thank you (think phonetically)What on earth does tq and tqvm mean?
tqvm = thank you very much
Re: images din't appear when files transfered
AHA!
Thank you from a non-native english speaker
Thank you from a non-native english speaker
Re: images din't appear when files transfered
Thank you from a native english speaker (I didn't get it either, Klaus, maybe we're just old )