Drop Down Palette Flex Component 5
I have been wanting an excuse to build a custom component ever since 360 | Flex last month. I decided to create a drop down palette using standard Flex controls instead of coding one from scratch in Flash. It was much easier than I expected it to be. I was able to take a ComboBox control and pass it a TileList as it’s dropdown list.
Demo Link
*sexy Black & Blue icons courtesy of icondrawer
The trick is that there is a getter for dropdown in mx.combobox but there is no setter. Instead there is a dropDownFactory property that you can pass a ClassFactory to. Furthermore there is a properties object to the ClassFactory where you can specify all of the properties you want to set on your TileList such as columnWidth and rowHeight.
var dropDownClassFactory:ClassFactory = new ClassFactory(TileList);
dropDownClassFactory.properties = {dataProvider:_data, rowCount:3, columnCount:3, rowHeight:150, columnWidth:150, height:450};
dropdownFactory = dropDownClassFactory;pretty slick. I am going to flesh this out though into a true component from this proof of concept. I want to create my own factory to be able to pass style information as well as have the TileList manage it’s own width and height based on the item renderers. Look for another post on this soon.


Exactly what I need… but can’t figure it out. No source?
Very cool post. I just recently started following your blog, but I look forward to contributing more in the future.
I am not sure where you are getting your information, but great topic
Blog posts about wedding and bridal are always rare to find , at least with great quality,you qualify for a great blog post writer title,kep the great job happening
Hi,
Can I have a copy of the source code for the aboved drop down palette?