Now available: FlpTree 1.2.1
On December 1, 2008, Components, Flex - 7 CommentsFinally!!!! I nailed the height bug! So, now you can finally make advantage of the variable row height! After a lot of searching, setting debug statements and all other debugging stuff, it turned out one event was called a bit too much which caused flex to seriously fuck up. Still can’t find the exact reason for it, but removing the listener did not harm the tree at all, so it was useless anyway
.
You can download the new swc from the project page, which is here. Also, a link to the docs and an example can be found on the project page
Have fun!
What others have to say:
Hi,
There are an important Use Case missing in the tree: allow the display of the count of the number of elements (leafs) present in a folder
If you use a labelFunction or a custom renderer, you can easily achieve this.
In the custom renderer for example, override the set data function and set the label each time it’s called. When you’re using lazy loading, with some kind of backend. You need an extra property in your objects holding the amount of children of a child. In the labelFunction you can than easily do something like this:
return data.label + “(” + data.numChildren + “)”;
Hi,
your tree component is cool, but i also miss an important function.
it´s not possible to drag an entry before or after an entry. if i want to drag tetris after pac man, it creates a subfolder and tetris is a member of pac man.
at http://www.idsklijnsma.nl/iktree_v_1/ i can choose if i want to drag the entry in a subfolder or after/before another entry.
please make this also possible at your component
Thanks for reporting, I fixed it in version 1.2.2, which is available right now.
thanks
If you add entries to an entry and then remove all entries in this folder the entry doesn´t change back to a file
and sometimes i get this error
Error: Error #1502: Ein Skript wurde länger als die Standard-Timeout-Zeit von 15 Sekunden ausgeführt.
at nl.flexperiments.tree::Node/__dragBoxEnterHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.managers.dragClasses::DragProxy/dispatchDragEvent()
at mx.managers.dragClasses::DragProxy/mouseMoveHandler()
No, it doesn’t. I’m not sure if I should implement this (thought about it before). To change it back to the file, just delete the children property.
Leave a Reply