mouse within oval filled area
iowahengst at mac.com
Sat Nov 12 11:09:15 EST 2011
Sorry to flood the list.. but nevermind… I double-checked and that idea doesn't help you….
On Nov 12, 2011, at 9:56 AM, Randy Hengst wrote:
> 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
> 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
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode