来源:http://www.lufree.com/show_491.html
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
//定意变量 [Bindable ] private var Bindable_online_char_list: Array; Bindable_chat_type_list= [ { text: '<font color="#ffffff">普通</font>', label: "普通" }, { text: '<font color="#f8f400">全服</font>', label: "全服" }, { text: '<font color="#00a8ec">队伍</font>', label: "队伍" }, { text: '<font color="#59ec00">传音</font>', label: "传音" }, { text: '<font color="#f409f1">门派</font>', label: "门派" } ]; //控件绑定 <mx:combobox x= "0" y= "163" width= "68" height= "26" id= "ComboxBox_chat_type" itemRenderer= "component.renderer.ChatType" dataProvider= "{Bindable_chat_type_list}" > </mx:combobox > |
ChatType.mxml
1
2 3 4 |
< ?
xml
version=
"1.0" encoding=
"utf-8"?
>
<mx:label xmlns:mx= "http://www.adobe.com/2006/mxml" htmlText= "{data.text}" fontWeight= "normal" > </mx:label > |