Problem moving objects
Posted: Sat Oct 27, 2012 4:30 am
I am working on a seating chart and am having trouble allowing the user to move the seats. Right now the seats are placed in a set arrangement and locked into position. You can move the students from seat to seat.
I am trying to make the seats moveable so that the user can change the arrangement of the chairs. I added the following code
In edit mode, I can move the seats. On the card, I added
but when I run it, I get the error message:
card "seatingChart" execution error at line 321 (grab: can't find object), char 1
Any ideas why? I have used "grab me" before.
Is there another way to do this?
Thanks
I am trying to make the seats moveable so that the user can change the arrangement of the chairs. I added the following code
Code: Select all
command makeSeatsMoveable
repeat with x = 1 to numSeats
set the opaque of graphic ("seat_" & x) to true
set the lockLoc of graphic ("seat_" & x) to false
set the showName of graphic ("seat_" & x) to true
end repeat
end makeSeatsMoveable
Code: Select all
on mouseDown
grab me
end mouseDown
card "seatingChart" execution error at line 321 (grab: can't find object), char 1
Any ideas why? I have used "grab me" before.
Is there another way to do this?
Thanks