Alex pointed out that there appeared to be multiple updates of the tileList 
dataProvider.

I did some digging and indeed there were duplicated httpservice calls to 
populate the tileList. One from the creationComplete event and another from a 
'show' event.

The result was that there were 2 rapid-fire successive calls to update the 
dataProvider. Apparently this created a problem with the indexing of the list 
items creating all kinds of havoc. drag and drop did not work - clicking an 
item 
would not produce a 'selection' or create selectedItem..... what a mess

Once I removed the duplication the tileList performs totally as expected.

Thanks for the keen eye Alex !

Alex Harui wrote:
> 
> 
> can you post a test case?
> 
> ------------------------------------------------------------------------
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Ben Marchbanks
> *Sent:* Monday, December 10, 2007 8:13 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] TileList drag/drop error yet again
> 
> I'm back with the same tileList D/D error I reported earlier only this
> time I am using AC as the dataProvider per recommendations (Alex) -
> error message is the same
> 
> dropIndicator.x = cc && listItems[rowNum].length &&
> listItems[rowNum][colNum] ?
> listItems[rowNum][colNum].x : colNum * columnWidth;
> 
> What's interesting is that it seems to be limited to items in the
> first row. Its basically thumbnail images that the user should be able
> to re-order. It you select c1 r1 and drag to c2 r1 it immediately
> throws the error, but if your select c1 r1 and drag down to say r3
> then back up to finally drop at c2 r1 it works without error !
> 
> BTW I am using the default d/d function -
> 
> 

-- 
Ben Marchbanks

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

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

Greenville, SC
864.284.9918

Reply via email to