Does anyone have a working example of the following. I have a list of
products in a tilelist, represented by thumbnail images. The product
list is stored in a static XML file accessed via HTTPService.
My TileList:
<mx:TileList height="100%" width="190" dataProvider="{myProduct}"
itemRenderer="thumbnail" columnCount="2" columnWidth="85"
dragEnabled="true" dragMoveEnabled="false"
></mx:TileList>

My itemRenderer:
<?xml version="1.0"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml";
        horizontalAlign="center"
        verticalGap="0" borderStyle="none" paddingLeft="0"
paddingRight="0">
    <mx:Image id="image" width="82" height="62"
source="{data.thumbnail}" toolTip="{data.code}"/>
</mx:VBox>

I need to be able to drag a product from the TileList and make a COPY
on a canvas that would also draggable (so after a few items are
dragged, they could be arranged anywhere on the canvas). Also in the
XML is a icon view of the image that is a vector drawing, so I want to
use that as the Proxy view while dragging and also as the item to be
dropped. It can be accessed as source="{data.icon}".

I have been looking at the samples with the updated Chapter 29 Using
Drag and Drop from the Flex Documentation, but I seem to be making my
application worse, not generating a workable solution.
I've also looked at this site -
http://demo.quietlyscheming.com/DragTile/DragDrop.html - which has a
really cool example, but there is so much interactivity going on with
the tweening that it is hard to understand the basic drop and drag
functions. 

Any help or a pointer to a good (simple) example would be appreciated.

Dave

Reply via email to