Yoann on flex

July 5, 2007

Flex treeNavigator

Filed under: Flex, TreeNavigator — yoyoann @ 2:48 pm

I am currently building a website with a pretty complex navigation structure, and I stumbled on one of the Flex limitations : the absence of a tree component to browse on a viewstack. So I started writing something, thinking it would be plainly easy. However I quickly understood it would be way more difficult than I first thought, especially because my experience in dealing with dataBinding, e4x, and treeNavigation was almost null …

So I spent a good while trying to get an almost working version, that was really really ugly. I decided to rewrite all ..

I spent another while coding the whole stuff again, with genericity and resusability in mind, and I admit I am pretty proud of the result. It is still dirty and should be revamped a lot, and many things are not working yet, but it is already almost usable.

Demo View Source

2 Comments »

  1. Well after a few more try, I spotted few more bugs …

    Comment by yoyoann — July 5, 2007 @ 2:53 pm

  2. Just read that using ArrayCollections for tree, in spite of XML, is faster…

    I planned to implement something with ArrayCollections someday, bu it is going to be ton of work !

    Comment by yoyoann — July 6, 2007 @ 2:03 pm


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.