Creating an image
Posted: Thu Oct 22, 2009 12:00 pm
I'm trying to create an image on a card. The image is one selected earlier by the user; its pathname is in the variable originalFile.
Here's the script that I would hope would create the image:
What am I doing wrong?
Here's the script that I would hope would create the image:
After running this, however, the size and location of the image is that of the selected file "originalFile"; in other words, the "set the width" and "set the height" commands have had no effect (this can be seen not only in the image itself, but also in the Size & Position property panel for the image). The "set the location" and "set the fileName" commands are correctly executed.create invisible image "Original label"
put it into originalImage
set the width of originalImage to 230
set the height of originalImage to 230
set the location of originalImage to 772,319
set the fileName of originalImage to originalFile
set the visible of originalImage to true
What am I doing wrong?