Flex LinkBar customization
I did some flex component customization today. In my application I am using a LinkBar that needed a different look-and-feel.
After some investigation I was able to do this, but not the way I would like to do it.
First of all: I used a Dataprovider to provide the LinkBar with the links it should render. Initially I thought that I could set more style properties on the dataprovider items, to change the look and feel of the LinkBar.
This is apparently not correct. What you can do for example is set an icon for each Link that gets created. This is fine, as long as you do not want different up and down icons for each Link created. I need more flexibility.
To solve the problem, I used the childAdded event of the LinkBar to set style properties for each Link that is created.
Please have a look at demo and it's source.
Btw: this example uses a AssetManager Class to serve up the graphical resources for the LinkBar. Found it somewhere on the net, but I do not remember where, so I can not give somebody kudos for it, sorry, please let me know if it is you :-)