dunbarx wrote:
What happens when you set the lock in the image inspector? The image should not respond to any mouse actions, though the arrow keys will move it if in editing mode.
In the image's properties, under "size & position", checking "lock size and position" does not have any effect on the "grab" command. The entry in the library just says how to use it; doesn't say how to escape it other than the user releasing the mouse button. But, as you suggested here...
dunbarx wrote:
if the short name of the target is not... then grab the target
...and Klaus confirmed, the problem was with how I built the conditional (also, thanks for that approach to shortening the if-then statement). This worked. I can now grab the ovals but the background image doesn't move.
Code: Select all
on mouseDown
if the short name of the target is not "sketch_geniepuzzle.bmp" then grab the target
end mouseDown
Klaus, thanks for explaining what I was doing wrong re: using "the target" vs "the short name of the target."
Is there a way to make that conditional less brittle? That image has ID 1015. If I need to change it in the future, and it has a different filename, when I import it can I tell LiveCode to just swap the new file into the same image ID and use the image ID in the conditional?