Hi,
For debugging, it might be useful to add the following before setting the filename:
Code: Select all
if there is no file myFilename then
beep
answer error "Can't find file" && myFilename
else
set the filename of img 1 to myFilename
end if
if this still doesn't give you a clue of what's wrong, you might want to post your own script here. Of course, you'll need to make sure that there is an image control on the card where you want to display the image and if the image isn't on the current card, you have to refer to that card:
Code: Select all
set the filename of img 1 of cd "Some Card" to myfilename
Note that if you want to display one image on many cards, you can create a button, group the button and set its icon to the id of your image control.
Kind regards,
Mark