I am attempting to create a online store using Flex. I added a TitleList 
for products the the users can drag and drop into a datagrid (shopping 
cart) to purchase. My problem is that I have no idea how to access the data 
in the DragSource to use to check to see if the item already exists (to 
update the quantity rather than add another one) or update the Singleton to 
use to check out. The titlelist item should include productName, img, price 
attributes in an ArrayCollection.

I see the dataForFormat method on the event.dragsource but what do I use 
for the String argument? For the product name would I try something like 
event.dragsource.dataForFormat("productName")? I tried something like that 
but my code errored out saying that it was a null attribute...but it could 
have been something else.

Does anyone know how to pull a property out of the dragged item? Examples 
or links? Thanks!

Reply via email to