Image Library

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
xclntdesign
Posts: 34
Joined: Sun Feb 06, 2011 8:33 pm

Image Library

Post by xclntdesign » Thu May 03, 2012 8:59 pm

I have created a new Image Library to contain all of the graphics I need for the app I am working on. I add the icon to the button from the new Image Library and everything looks fine. I exit the IDE and restart and the icons are missing.

Do I have to include the library (like stacksInUse)?

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Image Library

Post by shaosean » Thu May 03, 2012 10:31 pm

The IDE should automatically load the image libraries in to use for you.. Post what version you are using so we can check if there is a bug with the feature..

xclntdesign
Posts: 34
Joined: Sun Feb 06, 2011 8:33 pm

Re: Image Library

Post by xclntdesign » Fri May 04, 2012 1:21 am

Using 5.5 on a Mac.

If I put the images in the library on a stack they work fine, but since my app has multiple stacksni need to be able to access the images globally.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Image Library

Post by mwieder » Fri May 04, 2012 1:27 am

If you mean multiple substacks and you need to swap images on the fly, then the way I deal with this is:

create a card named "images" in the mainstack
put the images you want to reference on the "images" card
reference the images as "image xyzzy of card 'images'"

if you don't need to change the images, just use them then:

use the "import as control" menu item

Post Reply