Code: Select all
on preOpenCard
repeat with i = 1 to 10
set the loc of button ("b" & i) to random (the width of this stack) , random (the height of this stack)
end repeat
repeat with i = 1 to 10
if intersect (button ("b" & i), button ("b" & i)) then
preOpenCard
end if
end repeat
end preOpenCard