Use the "within" function. For example:
on mouseMove
if within (graphic 1, the mouseLoc) then put the mouseLoc
end mouseMove
This shows the mouseLoc in the message box as long as the cursor is
within the filled area of the polygon.
Hope this helps,
Marni
Claude Lemmel wrote:
>
> Is there an easy way to know if a point is in the filled area of a polygon ?
>
> In an educative game, i paved the screen with irregular polygons (like the
> pieces of a puzzle). Of course, the rect of the polygon overlap, but not their
> visible area.
> I grab a button.
> In the mouseUp script of the button i need to know which polygon is under the
> center of the grabed button.
> How could i perform this task ?
>
> Claude Lemmel
--
Marni Centor ([EMAIL PROTECTED])
Summit Systems, Inc.
22 Cortlandt Street
New York, NY 10007
(212) 896-3466
The views and opinions expressed in this email message are the sender�s
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.