I'm working on a project where I need the ability to select images and store them for use later. I have the code in place to select the images and store them in a variable. I can then have the image display in an image area on the same card as the button used to select it.
The problem I have is when I try to display the image (stored in a variable) in an image area on a different card in the stack
The code I'm using in the button is as follows
Code: Select all
on mouseUp
answer file ""
put it into targetArray
if there is a file targetArray then
put targetArray into field "Field"
set filename of img "Image 2" to targetArray
end if
end mouseUp
however, when I try to have the image display on the next card in an image area nothing happens. The code, which is on the card script, is as follows:
Code: Select all
on openCard
set the filename of img "Image" to targetArray
end openCard
any help anyone can offer would be greatly appreciated.