Geez, Ben, you keep finding all the ways the XML doesn't behave like
normal objects.

 

I think you'll have to handle dragDrop and dragComplete events yourself,
calling preventDefault(), and handling the move differently.  You'll see
code that does this in Tree.

 

A D&D move adds to the destination then removes from the source.  With
objects in an array, that works.  In XML, the remove actually removes it
from the parent which is not what you want.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ben Marchbanks
Sent: Monday, September 24, 2007 10:43 AM
To: [email protected]
Subject: [flexcoders] TileList problem - here we go again - drag/drop
error

 

I have a TileList with an e4x dataProvider - I want to simply allow the
user 
to re-order the list using builtin drag and drop.

I enabled the list with - drag enabled, drop enabled, move enabled and
as soon 
as an item is dragged it throws an error at the following line in
TileBase.as

dropIndicator.x = cc && listItems[rowNum].length &&
listItems[rowNum][colNum] ? 
listItems[rowNum][colNum].x : colNum * columnWidth;

Any suggestions ?

Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com <http://www.alQemy.com> 

::: magazooms ::: digital magazines
http://www.magazooms.com <http://www.magazooms.com> 

Greenville, SC
864.284.9918

 

Reply via email to