Page 1 of 1
Images in a stack
Posted: Sun Jun 24, 2012 11:10 pm
by bbecker
I am creating an interactive map. The map itself is a graphic. I would like an actual image to display in a designated space when a user hovers the cursor over map elements under transparent buttons. I set up an image holder in my right margin with locked dimensions. I import as control an image, and then in my message box, I script the image to be put into the image holder. That works fine, and the image appears in that holder or container in proper dimensions. I save the stack, and then delete the original image off the card. Save again. Then when I hover over the button, the script summons "no such object" error. I guess I am asking how to get images "stored" in the stack so that they are available for display on demand by script. Thanks for any help you can offer.
Re: Images in a stack
Posted: Mon Jun 25, 2012 7:10 am
by dave_probertGA6e24
Hi,
I think that the way I would suggest to do this is to have a card that is "hidden" (basically is never gone to by the user) and keep all your images on it so that other cards can reference them.
What I do is to have a card called "_images" and either set the icon for button to the ID's of images on that card, or to copy the image data to a new image on other cards (which can be done at runtime)
eg.
Code: Select all
put the ID of image "fred" of card "_images" into pID
set the icon of button "sally" to pID
or
Code: Select all
set the text of image "george" to the text of image "fred" of card "_images"
where "fred" is an image on the "_images" card, "sally" is a button on another card and "george" is an image area on anther card.
This allows you to have many images that you can access whenever you want and they are neatly kept out of the way of your main work area.
I hope that helps.
Dave