images gone in standalone

2011-10-04 Thread Curt Ford

Thanks, everyone, for the suggestions.. turns out it was a different issue.

The project is still small with just a few images, so I began to  
rebuild it from scratch, making standalones after any major additions.  
Images in the standalones were fine until I checked 'copy referenced  
files' in the standalone application settings and selected a few mp3  
files to be stored in a folder called 'media.' At that point the mp3  
files were correctly copied into the Mac bundle, but images (for  
button states, as well as a few background images) were gone.


When I unchecked 'copy referenced files,' the images appeared again as  
they should, and I was able to put the 'media' folder with mp3 files  
into the bundle manually after choosing 'show package contents' for  
the standalone in the Finder.


Um, I should probably also have mentioned that I was doing this is  
4.0.. after upgrading to 4.6.4, the problem has gone away, and I'm  
able to use 'copy referenced files' without vaporising my poor images.


-Curt


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


images gone in standalone

2011-10-03 Thread Curt Ford
My project has about 12 images, most of which are used as the icons for buttons 
with normal, hover, and disabled states, and two as images displayed on a card. 
When I build a standalone on Mac (haven't tried Windows yet), the images are 
gone, replaced by grey boxes; the buttons function normally otherwise. I used 
Import as Control to put them onto a card that's just storage for graphics. 
They're still showing normally on that card in development, but when I go to 
that card in the standalone, there is nothing but the grey boxes.

When I check the application browser they are all still listed for the graphics 
card. When I check the Images library for 'this stack' they usually are there, 
though I could swear a few times choosing 'this library' has given blank rows.. 

I've tried reimporting through Import File... in the Image Library with no 
better result.

Don't know if it's relevant, but I have renamed the file in the Finder in 
between sessions. Could that lead to some link being lost?

Curt





c...@sonasoftware.com




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: images gone in standalone

2011-10-03 Thread Devin Asay
Hi Curt,

On Oct 3, 2011, at 5:00 AM, Curt Ford wrote:

 My project has about 12 images, most of which are used as the icons for 
 buttons with normal, hover, and disabled states, and two as images displayed 
 on a card. When I build a standalone on Mac (haven't tried Windows yet), the 
 images are gone, replaced by grey boxes; the buttons function normally 
 otherwise. I used Import as Control to put them onto a card that's just 
 storage for graphics. They're still showing normally on that card in 
 development, but when I go to that card in the standalone, there is nothing 
 but the grey boxes.
 
 When I check the application browser they are all still listed for the 
 graphics card. When I check the Images library for 'this stack' they usually 
 are there, though I could swear a few times choosing 'this library' has given 
 blank rows.. 
 
 I've tried reimporting through Import File... in the Image Library with no 
 better result.
 
 Don't know if it's relevant, but I have renamed the file in the Finder in 
 between sessions. Could that lead to some link being lost?

It's hard to say without seeing the stack, but it sounds like what happens when 
you use some of the included standard images included in the LiveCode IDE. If 
so, you have to make sure the image is imported, not referenced. But since you 
said you imported them, I'm not sure why they would disappear in the standalone.

Also make sure that the ID numbers of your imported images do not conflict with 
ID's of the standard images. That can cause odd anomalies when viewing your 
stack images in the Image Library.

HTH

Devin


Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: images gone in standalone

2011-10-03 Thread Bob Sneidar
I think an ID conflict would just give him the wrong image, not a blank one. 
Just guessing tho'.

Bob


On Oct 3, 2011, at 8:52 AM, Devin Asay wrote:

 Also make sure that the ID numbers of your imported images do not conflict 
 with ID's of the standard images. That can cause odd anomalies when viewing 
 your stack images in the Image Library.
 
 HTH
 
 Devin
 
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: images gone in standalone

2011-10-03 Thread Devin Asay
Right, but he had also reported oddities when trying to view his images in the 
stack's image library. ID conflicts can cause that.

Devin

On Oct 3, 2011, at 10:33 AM, Bob Sneidar wrote:

 I think an ID conflict would just give him the wrong image, not a blank one. 
 Just guessing tho'.
 
 Bob
 
 
 On Oct 3, 2011, at 8:52 AM, Devin Asay wrote:
 
 Also make sure that the ID numbers of your imported images do not conflict 
 with ID's of the standard images. That can cause odd anomalies when viewing 
 your stack images in the Image Library.
 
 HTH
 
 Devin
 
 
 Devin Asay
 Humanities Technology and Research Support Center
 Brigham Young University
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: images gone in standalone

2011-10-03 Thread Chipp Walters
Couple things to look at:

1) Are the images stored in the stack or on the hard disk? Easy way to
check for this is select an image (not a button) and enter in the msg
box: put the filename of the selObj
If they're stored on the hard disk then you'll need to import them
into the stack. Use the Import as Control from the File menu in the
Rev IDE.

2) If the images are indeed not linked to filenames, check to see if
they are in the same stack. If they are not in the same stack, then
put them in the same stack and re-link them and then set their
visibility to false. I typically put a last card in the stack and
store all my images there, so I don't have to make them invisible. Of
course you don't want folks navigating to this card!

3) It might help speed things up if you do something like (card script
of main stack):

on preOpenStack
  go last cd
  go first cd
end preOpenStack

This effectively caches all images on the last card and speeds up execution.

-- 
Chipp Walters
CEO, Shafer Walters Group, Inc.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode