Sorry for the late response, I believe
that when you get the dataForFormat(“items”) you receive a copy of
the items *each time.* So the
next time somebody asks for dataForFormat(“items”) they’re
getting a new copy, thus not seeing your changes. The DragProxy itself I don’t
think is going to pay any attention to what you do, it’s a relatively
static image once it starts dragging.
Matt
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Douglas Knudsen
Sent: Wednesday, August 10, 2005
7:54 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] how to
add items to the dragsource?
any ideas on this? Seems to pull this off, have to extend the
List
comp with custom dragdrop stuffs.
DK
On 8/8/05, Douglas Knudsen
<[EMAIL PROTECTED]> wrote:
> http://livedocs.macromedia.com/flex/15/flex_docs_en/00000623.htm
> has
> "The DataSource object created by Flex
contains the following data objects:
>
> * For a List or
DataGrid control, the first data object contains a
> copy of the selected item or items in the
List or DataGrid control,
> and has a format string of items. The
selected items implement the
> DataProvider API."
>
> that said, DS also has a method addData() (
> http://livedocs.macromedia.com/flex/15/asdocs_en/mx/core/DragSource.html
> ) which doesn't seem to work.
>
> Maybe there is an event that I need to fire
to update the dragproxy display?
>
> DK
>
> On 8/8/05, Allen Manning
<[EMAIL PROTECTED]> wrote:
> > Douglas,
> >
> > Are you sure that DS is actually a Data
Provider? I think it would exhibit
> > that behaviour if you were attaching
dynamic properties onto an Object.
> >
> > Allen
> > www.prismix.com/
> >
> >
> > -----Original Message-----
> > From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> > Behalf Of Douglas Knudsen
> > Sent: 08 August 2005 17:04
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] how to add items
to the dragsource?
> >
> > I'm trying to add items to a dragsource
on th efly.
> >
> > var DS =
event.dragSource.dataForFormat("items");
> > DS.addItem(objectitem);
> > alert(DS.length);
> >
> > It adds it according to the alert, but
nothing is changed in the
> > display. In other words, the
dragproxy image thingy is not updated.
> > Is this 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
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>
--
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