I have an image resource folder on my Dev machine - it contains all the images, in various sizes, that my app needs...
So that I don't have to ship these raw images with the app and to make the app a little faster once loaded... I select the images the app needs and place them on a hidden card within the app.
BUTTONS
Populating button icons with these images is pretty simple :
'set the icon of button "MyButton" of card "MyCard" to 1234' - where 1234 is the ID of the source image on the hidden card).
If I'm to achieve this across stacks / sub-stacks then I simply amend the code line to be:
'set the icon of button "MyButton" of card "MyCard" to 1234 of stack "MyResourcesStack"
For me, that's pretty intuitive and straight forward. And... I use buttons to display all sorts of 'images' at runtime, setting the 'Disabled' to true if there's no text within the button / I don't care about the button text greying out -or- simply not giving the button any script and unchecking its 'Focus' properties... Simple...
The problem is (as far as I can tell) a button's icon does NOT resize when one resizes the button itself (for whatever reason)... which can be a real pain...
---
IMAGES
Images, on the other hand, don't appear to be quite so friendly, but do allow themselves to be resized... wonderful...
So, it's pretty simple to load an image with the selected file/source image both at dev time - using the 'Source' option in the Properties Inspector, navigating to my required image and selecting 'Open' and at runtime - using something like 'set the filename of image "MyImage" to ImagePath & "/" & ImageName'... all very Simple...
Now for the problem :
I cannot for the life of me get the contents of one image to be transferred to another image. Example; I have a (hidden) Image Resource card, on it I have a hidden image of a 'X' and a 'O'. I then have a game playing card for OXO / 'Naughts and Crosses'. The game card is really simple - 9 empty images in a 3 x 3 grid. Clicking on an image SHOULD copy the contents of either the 'X' or the 'O' source image (on the Image Resource card) into the selected/clicked image on the game card... (sound of raspberry blowing -

so many different versions of : the 'text' of my source image to the 'text' of my destination image, the 'ID' of my source image to the 'ID' of my destination image, image to image.... arghhh...
Some of my attempts fail with an error BUT a lot don't (and don't actually seem to do anything either)
set the text of image "MyImage" of card "MyCard" to 2115233
set the text of image "MyImage" of card "MyCard" to image id 2102544
set the text of image "MyImage" of card "MyCard" to image id 2102544 of card "MyCard"
set the text of image "MyImage" of card "MyCard" to image id 2102544 of stack "MyStack"
put the text of image "MySourceImage" into the text of image "MyImage"
put the text of image "MySourceImage" of card "MyCard" into the text of image "MyImage" of card "MyCard"
it goes on ad infinitum and I forget everything I've tried, frustration sets in and then I repeat previous errors... It's horrible...
There is manifestly, something I am missing... but what ? Do the 2 images have to be the same size (it doesn't seem to make any difference during my tests...
What am I missing ?
This is SOOOOO frustrating...
If I switch the game card images for buttons, I can load/populate them as per the button script above BUT, I can't resize them... hmmm... so, I switch the buttons to images but now I can't load / populate them like I did with the buttons... What am I doing wrong please ?
A lot of the above is for those like me that simply become frustrated with all the examples that don't in reality seem to work and an attempt to clear up some confusion or missing 'nugget' that, I (at least) have... So, I hope it helps BUT it still doesn't provide a definitive answer re: how to populate one image control with the contents of another...
I'm hoping someone can clear this one up for me - it's driving me nuts...
Regards.