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: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Douglas Knudsen
> Sent: 08 August 2005 17:04
> To: [email protected]
> 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?


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12h63jcqj/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123530090/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

--
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