If you are a flash developer, you should have seen lots of comboBox designs and they're always different from each other. And the default comboBox component in flash? You know how it is, I realy don't need to say anything about it.

So, I needed a comboBox that is easily editable, easy to use and more developer friendly; and I decided to create one. So here it is:

This movie requires Flash Player 9

Creative Commons License And yeah, it's open source and licensed under creative commons noncommercial license.



You can edit the skin, just like editing a movieclip and use its methods as easy as standard combobox.

It has ability to arrange the position of the list automatically, according to the combobox' positon on stage, so the list will be opening on the above or below of the combobox.

 
comboBox.dataProvider("String","String","String","String");
comboBox.dataProvider({label:"String", data:2},{label:"String", data:3},{label:"String", data:4});
comboBox.addItem("String");
comboBox.addItem({label:"String", data:2});
comboBox.listItemsLeftMargin = 0;
comboBox.listItemsRightMargin = 0;
comboBox.listItemsTopMargin = 0;
comboBox.listItemsBottomMargin = 0;
comboBox.itemDefaultColor = 0x3CBDE3;
comboBox.itemOverColor = 0x3399CC;
comboBox.itemPressColor = 0xFFFFFF;
comboBox.itemSelectedColor = 0xA4E0F2;
comboBox.itemDefaultTextColor = 0x003366;
comboBox.itemOverTextColor = 0x000000;
comboBox.itemPressTextColor = 0x999999;
comboBox.itemSelectedTextColor = 0x3333;
comboBox.setSize(150);
comboBox.size = 150 ;
comboBox.value;
comboBox.getValue();
comboBox.getSelectedItem();
comboBox.getSelectedIndex();
comboBox.clear();
comboBox.length;
 

Click here to download the component.


(I appreciate your donations)

Please send your comments, suggestions and any enhancements you made on the comboBox, so we can build it together.

Tags: combobox, combo box, dropdown, selectbox, pulldown, component, free, open source, easy, editable, flash, as2