简体   繁体   中英

Flex 4.5: Tree DisplayList

I'm trying to make a Flex Tree Component display the children of a sprite in a hierarchical way.

Moreover, dragging the items on the FlexTree would resort and reparent the items. I have special Elements set as Folders. This would allow other elements to be added there as a children by dragging an element on the tree and dropping it there.

I have a failed attempt which works, but breaks when I try to add folders. Basically, it fails at reparenting the items by dragging and resorting folders and that D:

Does anyone know of a component or something which can do this, has anyone have created any of this or could anyone give me a clue?

The way I did it is not use flash sprites for the layer management, but use a separate variable which holds the folder each element belongs to.

Then, the tree is created using that information and it's easier to modify it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM