Well, the #'s I've shown below work well in another app I made.  However, if 
you don't want to do all the math, you can be an uber haxnor, and use this:

var dragProxy = DragManager["_dragProxy"];

He'll be alive for about 200 milliseconds after you drop I think.  He's of 
base type mx.core.View.

----- Original Message ----- 
From: "Douglas Knudsen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, November 28, 2005 2:19 PM
Subject: Re: [flexcoders] getting coordinates of dropped item


hmmm, I am not using DragManager.doDrag(), I just have dragEnabled set
to true and going the automagik route.  I was messing with doing the
manual approach, but things were all mucked up...another thread for
that one.

DK

On 11/28/05, JesterXL <[EMAIL PROTECTED]> wrote:
> ...last one, I swear.  Finally, the last piece of numbers is your ORIGINAL
> offset that you passed to DragManager.doDrag; that, too, will affect the
> mouseX and mouseY real cooridinates.
>
> ----- Original Message -----
> From: "JesterXL" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, November 28, 2005 2:05 PM
> Subject: Re: [flexcoders] getting coordinates of dropped item
>
>
> Ugh.  Even 1 more thing to keep in mind; the mouseX and mouseY of where 
> you
> dropped it are relative to the target you dropped it on.  So, if you 
> dropped
> it on "my_canvas" at 10, 10; if the canvas itself is at x=10, and y=10, 
> then
> in reality, you dropped it at Application.x=20, Application.y=20.
>
> This is where localToGlobal comes into play.
>
> ----- Original Message -----
> From: "JesterXL" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, November 28, 2005 2:01 PM
> Subject: Re: [flexcoders] getting coordinates of dropped item
>
>
> This coffee blows.  *ahem*
>
> Naw, see my original email, the mouseX and mouseY.  Although you can find
> the dragProxy on _root somewhere, in reality, you "drop it" where your x 
> and
> y mouse are, thus the X and Y mouse of the target are where you dropped 
> it.
>
> Sorry again.
>
> ----- Original Message -----
> From: "Douglas Knudsen" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, November 28, 2005 1:43 PM
> Subject: Re: [flexcoders] getting coordinates of dropped item
>
>
> event.target points to the object being dropped on though, eh?  Not
> the object being dragged about.  I need the coords of the object being
> dragged about.
>
> DK
>
> On 11/28/05, JesterXL <[EMAIL PROTECTED]> wrote:
> > ...er, event.target.x and event.target.y, sorry.
> >
> > ----- Original Message -----
> > From: "JesterXL" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Monday, November 28, 2005 1:32 PM
> > Subject: Re: [flexcoders] getting coordinates of dropped item
> >
> >
> > function dragDropHandler(event)
> > {
> >     trace(event.target.mouseX);
> >     trace(event.target.mouseY);
> > }
> >
> > ----- Original Message -----
> > From: "Douglas Knudsen" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Monday, November 28, 2005 1:14 PM
> > Subject: [flexcoders] getting coordinates of dropped item
> >
> >
> > Ok, I'm using the DragManager on a List via dragEnabled="true".  How
> > to get the coordinates of the dragproxy when its dropped?  Possible?
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>


--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to