I wonder if someone could help me with the following:
I have a card which generates a visual using graphics, on this card is a button which is meant to send a screengrab of the generated visual to an Image Area on another card. I am trying to figure out how I can check the image fields to see if they are empty or not so that the generated visual gets placed in an empty image area and once all of the 9 image areas are full then it should clear them and place the generated visual into the first image area.
Image empty areas are laid out on a card like this:

Once an image has been added to image areas I want to be able to find the next available empty image area (I can't use a repeat loop because the images are being generated and set to the image areas when the user chooses and not all at once.

I have a button on the same card where the visuals are generated with this script (at the moment I am just trying to get two images in):
Code: Select all
on mouseUp
if img 1 of card "manualS" is EMPTY then
EXPORT snapshot from rect 0,20,320,340 of this card to img 1 of card "manualS" of this stack
else if img 1 of card "manualS" is not EMPTY then
EXPORT snapshot from rect 0,20,320,340 of this card to img 2 of card "manualS" of this stack
end if
go to card "manualS"
end mouseUp