What are the four lines? If you remove them what happens? Step through dragCompleteHandler.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Thursday, May 29, 2008 11:14 PM To: [email protected] Subject: [flexcoders] Tree duplicating items - desperate!!! fellows, i have been bugging you guys about my tree component for a quite long time and i'm almost finish. the only thing i still have to deal is a "bug" that's happening. What happen is, i have to create branches on the fly, dynamically whenever i dragover a item. here is the code to do that (anyone think in a better solution?) var currNodeOver:TreeItemRenderer = TreeItemRenderer(indexToItemRenderer(calculateDropIndex(event))); if (currNodeOver == null) return; [EMAIL PROTECTED] = true; expandItem(currNodeOver.data,true, true); What is happening is along the drag and drop, an item has been duplicated somehow. I have cleaned the code on the point to leave just that 4 lines on my extended tree and guess what? still happens. so i'm not sure if it's a tree bug or is something wrong with those lines, but sometimes (and it doesnt happen everytime) when i drag a children from a branch it duplicates, which mean that the one i was dragging does not move. I'm not sure if i'm being clear, but i hope i can get some help on that cause i just lost a couple days trying to fix it. Here is some screen shot of what's happening. Picture 1, the normal state. http://www.enilsson.com/assets/images/pic1.png <http://www.enilsson.com/assets/images/pic1.png> Picture 2, the bug http://www.enilsson.com/assets/images/pic2.png <http://www.enilsson.com/assets/images/pic2.png> Like i said. it should had moved instead of duplicate. Most of the time is working, everything works... but suddenly it duplicates and debug doesn't return any errors. helpppppppppppppppppppppppppp

