Page 1 of 3

images din't appear when files transfered

Posted: Thu Apr 12, 2018 4:30 pm
by snarf
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

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 4:44 pm
by bogs
Hello snarf :D

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.

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 4:49 pm
by jmburnod
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

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 4:52 pm
by snarf
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...

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 4:55 pm
by snarf
jmburnod wrote:
Thu Apr 12, 2018 4:49 pm
Welcome to this forum
the problem is the images didn't appear when i use other computer to open the file
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 menu "import referenced control" ?
Best regards
Jean-Marc
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...

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 4:57 pm
by Klaus
Hi snarf,

welcome to the forum! :D

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

Posted: Thu Apr 12, 2018 5:03 pm
by snarf
Klaus wrote:
Thu Apr 12, 2018 4:57 pm
Hi snarf,

welcome to the forum! :D

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
tq... but sorry, i didnt find the 'Position' tab...

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 5:15 pm
by Klaus
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.

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 5:34 pm
by snarf
Klaus wrote:
Thu Apr 12, 2018 5:15 pm
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.
ooo... tq tqvm... yes i saw it... tqvm...

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 5:50 pm
by Klaus
What on earth does tq and tqvm mean? :shock:

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 5:56 pm
by snarf
Klaus wrote:
Thu Apr 12, 2018 5:50 pm
What on earth does tq and tqvm mean? :shock:
haha... tq very much... :D

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 5:58 pm
by ClintMA
What on earth does tq and tqvm mean?
tq = thank you (think phonetically)
tqvm = thank you very much

😎

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 5:59 pm
by Klaus
AHA!
Thank you from a non-native english speaker :-)

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 9:06 pm
by bogs
Thank you from a native english speaker :D (I didn't get it either, Klaus, maybe we're just old :wink: )

Re: images din't appear when files transfered

Posted: Thu Apr 12, 2018 9:14 pm
by Klaus
bogs wrote:
Thu Apr 12, 2018 9:06 pm
Thank you from a native english speaker :D (I didn't get it either, Klaus, maybe we're just old :wink: )
NEVER! :D