Pilby wrote:

Does Flex's drag-and-drop support dropping of mx:Button or mx:Text objects into a container like a mx:VBox? Or am I limited to dragging only items from a Tree, a List, or a datagrid?

You can drag-drop anything.

var dragItems = event.dragSource.dataForFormat("items");

and dragItems is always returning "undefined".

Where are you adding the items to the DataSource?

You should be having something like this when the drag starts:

var ds:DragSource = new DragSource();
ds.addData([button, text], "items");
DragManager.doDrag(this, ds, MyDragProxy);

Now dataForFormat("items") will return the button and text objects.

Manish




Reply via email to