Indeed it is. I expected the DragEvent to have something similar. If someone needs this, it works like this:
private function onDragDrop(event:DragEvent):void { trace("droped on:"+List(event.target).calculateDropIndex(event)) } Thanks Alex --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > It is a method, not a property. I assume you have a dragdrop event > handler? The one in LIstBase.as might serve as an example. > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of flashcrow2000 > Sent: Monday, September 17, 2007 10:56 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: drag and drop an image object, over a list > object > > > > Which is not an option for a List item. I tried using it from the mxml > declaration (and it does not exist, according to Flash 2.0.1), and > also from AS (of course, with the same result). If i'm doing something > wrong, can you please provide a small code sample? > > Thank you Alex > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > , "Alex Harui" <aharui@> wrote: > > > > calculateDropIndex? > > > > > > > > ________________________________ > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > ] On > > Behalf Of flashcrow2000 > > Sent: Monday, September 17, 2007 5:56 AM > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > > Subject: [flexcoders] drag and drop an image object, over a list > object > > > > > > > > Hello all, > > > > I have the following problem: I need to be able to drag an Image > > object over a list, and make some operations based on the specific row > > i'm dropping that picture on. The list contains names of different > > people, and each picture I drag over one name becomes assigned to that > > person. > > > > I have the drag and drop capability all worked out (i'm using the > > DragManager of course, and the List object accepts the drop) but I > > can't seem to be able to actually find out on what row the user > > dropped the picture. Any ideas? (I'm sure it's simple, but I just > > don't see it yet) > > > > Thanks, > > Cosmin > > >