Perhaps I am confused...

But if you are going to hide the top object, then put the mouse over the
polygon - then all you would need to do is use the mousecontrol
function. If the mouseControl is the polygon in question - then you've
got it.

However, this does not tell you if any point of the top object is over
the polygon. This would only tell you if the point at which you place
the mouse is over the polygon. If pLoc is in the middle of the top
object, but only the edge of the top object is over the polygon, then
this test would miss the overlap.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Bonham
Sent: Friday, June 24, 2005 10:55 AM
To: How to use Revolution
Subject: Re: is within ... polygon shape?

Eric,

Wow!
Now THAT is an ingenious approach!!! :-)
and it might be just the solution needed.

I'll give it a shot.

S



>Re Steve,
>
>Another funny approach:
>
>function WhichObject pLoc,pObj
>   local tCurLoc, tColor
>   -----
>   put the screenMouseLoc into tCurLoc
>   lock screen
>   hide pObj
>   set the screenMouseloc to globalLoc(pLoc)
>   put the mouseColor into tColor
>   set the screenMouseloc to tCurLoc
>   show pObj
>   unlock screen
>   return WhatKindOfObject(tColor)
>end WhichObject
>
>WhatKindOfObject function would return the right object according to 
>the passed  color  :-)
>Not tested... but should work.
>Ah, there are so many ways to do a job with Rev!

-- 


------------------------------------------------------------------------
--------------------------
Steve Bonham
Director, Faculty Technology Development Laboratory
Center for Excellence in Teaching - Georgia Southern University
Statesboro, GA 30460-8143
------------------------------------------------------------------------
--------------------------
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to