'여러 개의 설명 유형 항목' 경고를 제거하려면 어떻게 해야 하나요?

ComboBox의 selectedItem 속성에서 BindingUtils를 사용할 때 다음 경고가 표시되는 이유를 아는 사람이 있습니까? 이 문제를 해결하는 방법에 대한 아이디어가 있으신가요?

바인딩은 여전히 제대로 작동하지만 경고를 제거하면 좋을 것입니다.

warning: multiple describeType entries for 'selectedItem' on type 'mx.controls::ComboBox':
<accessor name="selectedItem" access="readwrite" type="Object" declaredBy="mx.controls::ComboBase">
  <metadata name="Bindable">
    <arg key="" value="valueCommit"/>
  </metadata>

해당 속성을 재정의하고 최종 선언하는 것이 좋습니다.

해설 (0)

다음은 코드입니다. 이 코드는 기본적으로 콤보박스에 대해 설정된 BindingUtils.bindProperty의 복사본으로, 둘 중 하나가 변경될 때 콤보박스와 모델이 모두 업데이트되도록 합니다.


public static function bindProperty2(site:Object, prop:String, host:Object, chain:Object, commitOnly:Boolean = false):ChangeWatcher
{
    var cbx:ComboBox = null;
    if ( site is ComboBox ) { cbx = ComboBox(site); }
    if ( host is ComboBox ) { cbx = ComboBox(host); }
    var labelField:String = "listID";

    var w:ChangeWatcher = ChangeWatcher.watch(host, chain, null, commitOnly);

    if (w != null)
    {
        var func:Function;

        if ( site is ComboBox )
        {
            func = function(event:*):void
            {
                var dp:ICollectionView = ICollectionView(site.dataProvider);
                var selItem:Object = null;

                for ( var i:int=0; i
해설 (1)