referenced docs
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 137
- Joined: Thu Jul 24, 2008 11:22 pm
referenced docs
I have just set up a new stand alone application. It has a graphics field on one card that has a picture in it that is stored on my hard drive. When I create the stand alone application I can't see the picture. I have attached it as a non stack file. I tried saving it as a copy file but then I lost a whole pile of graphics that I had used to paint the screens - I had done this by cutting and pasting images onto the card. So what is the right way to do it?
Hi Glenn,
Most of the time, I can't get the standalone builder to copy over the files I need. I'm sure there are a few bugs in the standalone builder causing problems. Therefore, I do this manually.
Just put the picture (or a folder with pictures) next to your stack and set it's filename to the relative path to your picture. For example, if the path to your stack is "~/desktop/stack.rev" and the path to your file is "~/desktop/folder/picture.jpg" then set the filename of the image object to "folder/picture.jpg". In this case, folder sits on the desktop next to the stack. The relative filepath does not start with a slash.
After building a standalone, copy the file or folder to your new standalone folder. If your stack is the executable file, you put the folder next to the exe file on Windows or inside the MacOS folder inside your standalone on Mac OS X. If you have a separate stack inside your standalone, i.e. not part of the executable, just put the folder or file next to that stack.
Best regards,
Mark
Most of the time, I can't get the standalone builder to copy over the files I need. I'm sure there are a few bugs in the standalone builder causing problems. Therefore, I do this manually.
Just put the picture (or a folder with pictures) next to your stack and set it's filename to the relative path to your picture. For example, if the path to your stack is "~/desktop/stack.rev" and the path to your file is "~/desktop/folder/picture.jpg" then set the filename of the image object to "folder/picture.jpg". In this case, folder sits on the desktop next to the stack. The relative filepath does not start with a slash.
After building a standalone, copy the file or folder to your new standalone folder. If your stack is the executable file, you put the folder next to the exe file on Windows or inside the MacOS folder inside your standalone on Mac OS X. If you have a separate stack inside your standalone, i.e. not part of the executable, just put the folder or file next to that stack.
Best regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode