Intersect or Within
Posted: Fri Jul 04, 2014 6:33 pm
I was working my way through this: https://sites.google.com/a/pgcps.org/livecode/
and thinking how good it was, when I cam across the stuff about 'intersect' here: https://sites.google.com/a/pgcps.org/li ... ng-objects
Now, to be completely and utterly honest, I had never come across intersect at all, and have always used 'within' for drag-and-drop things.
So; naturally enough, I whipped up a little stack to do a compare-and-contrast exercise.
INTERSECT allows overlaps, while WITHIN is very strict.
The problem with INTERSECT is particularly awkward when one's draggable object intersects 2 objects that are mentioned in its script.
This is a bit awkward to explain, so I am uploading a stack to illustrate this.
The image "panda" uses INTERSECT, and the image "adnap" uses WiTHIN (crack open the scripts to see how they work):
http://andregarzia.on-rev.com/richmond/ ... vecode.zip
and thinking how good it was, when I cam across the stuff about 'intersect' here: https://sites.google.com/a/pgcps.org/li ... ng-objects
Now, to be completely and utterly honest, I had never come across intersect at all, and have always used 'within' for drag-and-drop things.
So; naturally enough, I whipped up a little stack to do a compare-and-contrast exercise.
INTERSECT allows overlaps, while WITHIN is very strict.
The problem with INTERSECT is particularly awkward when one's draggable object intersects 2 objects that are mentioned in its script.
This is a bit awkward to explain, so I am uploading a stack to illustrate this.
The image "panda" uses INTERSECT, and the image "adnap" uses WiTHIN (crack open the scripts to see how they work):
http://andregarzia.on-rev.com/richmond/ ... vecode.zip