Silly Automated Rabbit

Richmond richmondmathewson at gmail.com
Wed May 7 08:50:28 EDT 2014


So: I have a group ['code block'] that contains this code:

on mouseDown
    clone me
    set the name of last group to "RL"
    grab group "RL"
end mouseDown

on mouseUp
    if not within (graphic "T1", the mouseloc) then
       delete group "RL"
       end if
end mouseUp

2 problems coming up here:

1. The mouse does not grab the cloned group.

2. If the mouse drops the cloned group outwith the bounds of graphic 
"T1" it is not deleted.

Would be glad of some help.

Richmond.




More information about the use-livecode mailing list