Ok, going with the idea of creating a class called Product, since it
seems to be referencing the first index of the draggedItems array,
would this be an object type class? Or an array since we're adding to
the dataProvider which is an arrayCollection?

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I thought you were dragging Products
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of bredwards358
> Sent: Monday, June 02, 2008 7:18 AM
> To: [email protected]
> Subject: [flexcoders] Re: Questions regarding updating dataProviders
> after a drag & drop
> 
>  
> 
> 
> --- In [email protected], "Alex Harui" <aharui@> wrote:
> >
> > Normally, you listen for dragDrop or dragComplete events and if you
> > don't want default behavior, you call preventDefault on the event and
> do
> > whatever you want.
> > 
> > 
> > 
> > So, if I were handling dragging products to a shopping list, I would
> > write something like this:
> > 
> > 
> > 
> > public function dragDropHandler(event:DragEvent):void
> > 
> > {
> > 
> > var draggedItems:Array =
> > event.dragSource.dataForFormat("items");
> > 
> > var draggedItem:Product = draggeItems[0];//Also, what is this Product
> data type? I don't quite understand where this comes from
> >
>


Reply via email to