mouse within oval filled area

Randy Hengst 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
>      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
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list