I'm not sure how your app is structured but if you can't put your movieclips
above this 3rd party movieclip you wont be able to use _droptarget (as
you've already discovered) unless you can set that interfering movieclips
visibility to false.

I'm not sure how / why you want to check what mc the mouse is over, but you
could also just manually set movieclips to set an "over" variable onRollOver
/ onRollOut or onPress.

The reason why I'm suggesting one of these methods is that all other options
will be much more complex, processor intensive and time consuming.
Unfortunately there is no getMovieClipAt(x,y) method.

Your best bet is to think about what core functionality you really need and
go with the cheapest solution. So if your goal isn't as broad as knowing
EVERY movieclips position / depth maybe you can put a few invisible
movieclips over the 3rd party clip that represents the position of the mcs
you really care about.

-erik



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vishal Kapur
Sent: Tuesday, February 06, 2007 5:26 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] determining which object is displayed at
agivenpoint

Ok, got it.  Thanks for the suggestion.  I tried this but it doesn't
work with the third-party flash movie I am looking at.  They have an
movie clip with _alpha set to 0 that covers the stage at a depth
higher than all other visible elements.  As a result _droptarget is
always set to that object.  What I need is something that takes into
account visibility.

Any other thoughts on this?

-- Vishal


On 2/6/07, Mike Mountain <[EMAIL PROTECTED]> wrote:
>  What he's saying is that _droptarget will tell you exactly what is at
> the top under the users mouse - but in order to use it you have to use
> startDrag to fool it in to working. Maybe you could drag an invisible
> clip around or something.
>
> M
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf
> > Of Vishal Kapur
> > Sent: 06 February 2007 16:03
> > To: Flashcoders mailing list
> > Subject: Re: [Flashcoders] determining which object is
> > displayed at a givenpoint
> >
> > I don't understand what you're suggesting.  The user is not
> > dragging the movieclip.
> >
> > The idea is to write a function with a signature like:
> > function getObjectAtPoint(xmouse:Number, ymouse:Number):Object
>
>
> ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
> Tel: 01964 672000
> Fax: 01964 671102
> Registered in England no. 01646471
> The information contained within this email expresses the views of the
sender and not necessarily those of the company. It is private and
confidential and may be legally privileged. It is intended solely for those
authorised to receive it. If you are not the intended recipient you are
hereby notified that any disclosure, copying, distribution or action taken
in reliance on its contents is strictly prohibited and may be unlawful. If
you have received this email in error, please telephone us immediately on
01964 672000 or email a reply to highlight the error and then delete it from
your system. This email may contain links to web-sites, the contents of
which ECM Systems Ltd have no control over and can accept no responsibility
for. Any attachments have been virus-checked before transmission; however,
recipients are strongly advised to carry out their own virus checking as ECM
Systems Ltd do not warrant that such attachments are virus-free. Please note
that this email has been created in the knowledge that Internet email is not
a secure communications medium. We advise that you understand and observe
this lack of security when emailing us.
>
> ECM Systems Ltd, Ellifoot Park, Burstwick, East Yorkshire HU12 9DZ
>
> Tel: 01964 672000
> Fax: 01964 671102
>
> Registered in England no. 01646471
>
> The information contained within this email expresses the views of the
sender and not necessarily those of the company.
> It is private and confidential and may be legally privileged. It is
intended solely for those authorised to receive it. If you are
> not the intended recipient you are hereby notified that any disclosure,
copying, distribution or action taken in reliance on its
> contents is strictly prohibited and may be unlawful. If you have received
this email in error, please telephone us immediately
> on 01964 672000 or email a reply to highlight the error and then delete it
from your system. This email may contain links to
> web-sites, the contents of which ECM Systems Ltd have no control over and
can accept no responsibility for. Any
> attachments have been virus-checked before transmission; however,
recipients are strongly advised to carry out their own
> virus checking as ECM Systems Ltd do not warrant that such attachments are
virus-free.
> Please note that this email has been created in the knowledge that
Internet email is not a secure communications medium.
> We advise that you understand and observe this lack of security when
emailing us.
>
>
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to