RE: [flexcoders] how to add items to the dragsource?

2005-08-18 Thread Matt Chotin










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) theyre
getting a new copy, thus not seeing your changes. The DragProxy itself I dont
think is going to pay any attention to what you do, its 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/0623.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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











Re: [flexcoders] how to add items to the dragsource?

2005-08-10 Thread Douglas Knudsen
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/0623.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:[EMAIL PROTECTED] 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?


 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hsmeeoi/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123692853/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/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/