How detect the object over other object is?

DunbarX at DunbarX at
Mon Dec 20 11:00:57 EST 2010


If you have a particular target object, why not simply test whether it 
intersects with all other objects? In the target object script:

on mouseup
    repeat with y = 1 to the number of controls
       put "control id" && the id of ("control" && y) into temp
     put temp && ":" && intersect(me,temp) into line y of accum
    end repeat
    answer accum
end mouseup

Good luck.

Craig Newman

More information about the Use-livecode mailing list