简体   繁体   中英

Set every ComboBox entry in a different color

As you can see in the title, I would like to display my entrys in a way like this ComboBox . But in my case it is enough to use white and grey. The object which will be added should look like this:

var item:Object = {label:"Dummy1", data:1 , "ValidItem":true};
if(item.ValidItem){setThisEnryInaDifferentColor();}

It should work like this pseudo code.

I´m using Flash with ActionScript 3 (no Flex, no AIR)

您可以在所选项目中调整文本字段的backgroundColor属性。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM