Hi Danymar,
I think you're trying to go too fast. First, you need to be able to create an image and and a button and set the icon of the button to the id of the image. Once you know how to do this, you can make your grid with pictures.
Which ID did you change exactly? Where did you change this? If I create an image and change the image to a really large number, LiveCode says something like "not an integer". Is this the error you see? ID numbers can be anything between -2147483586 and 2147483586, so the height of the ID number shouldn't be an issue.
Anyway, 10001 is fine, if you change the script too:
Code: Select all
on mouseUp
set the icon of btn 1 to 10000 + random(12)
end mouseUp
Other things to check: make sure that the mainstack of substack IMAGES is not stack IMAGES but really your mainstack. Type this in the mesage box
Code: Select all
put the mainstack of stack "Images"
and check the message box doesn't return "Images".
Did you use the menu item "Import as Control/Image File..." to import the images into your substack?
Where did you put the mouseUp handler? Did you put the preOpenCard handler in the card script and not anywhere else? Are you sure that the preOpenCard handler actuall ran? You can check this with a line like
which should show a window with the text "I'm running".
I don't know what you mean with "setting the board". Can you explain this?