Hi Hugh,
I haven't done exactly as you describe, but have made things where I only
wanted a response when the user clicked the filled area of a graphic.
I used the function version of within….
This script in the graphic….
on mouseUp
if within(graphic "myGraphic",the mouseLoc) then
beep
end if
end mouseUp
The beep only happens on the filled area of the graphic.
be well,
randy hengst
-----
On Nov 12, 2011, at 5:59 AM, FlexibleLearning wrote:
> Has anyone worked out how to test if the mouseLoc is within the filled area
> of an oval graphic (defined by startAngle and arcAngle)? I was thinking
> polar coordinates, but this assumes a circle and a fixed radius which is not
> necessarily the case. A btter math brain than mine is needed!
>
> Hugh Senior
> FLCo
>
>
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode