<p>Does anyone know why when using BindingUtils on the selectedItem property of a ComboBox you get the following warning? Any ideas how to resolve the issue?</p>

<p>The binding still works properly, but it would be nice to get rid of the warning.</p>

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

[{'answer_id': 14237, 'author': 'Matt MacLean', 'author_id': 22, 'author_profile': 'https://Stackoverflow.com/users/22', 'pm_score': 0, 'selected': False, 'text': '<p>Here is the code. It is basically a copy of BindingUtils.bindProperty that is setup for a ComboBox so that both the combo box and the model are updated when either of the two change.</p>\n<pre><code>public static function bindProperty2(site:Object, prop:String, host:Object, chain:Object, commitOnly:Boolean = false):ChangeWatcher\n{\n    var cbx:ComboBox = null;\n    if ( site is ComboBox ) { cbx = ComboBox(site); }\n    if ( host is ComboBox ) { cbx = ComboBox(host); }\n    var labelField:String = &quot;listID&quot;;\n    \n    var w:ChangeWatcher = ChangeWatcher.watch(host, chain, null, commitOnly);\n    \n    if (w != null)\n    {\n        var func:Function;\n        \n        if ( site is ComboBox )\n        {\n            func = function(event:*):void\n            {\n                var dp:ICollectionView = ICollectionView(site.dataProvider);\n                var selItem:Object = null;\n                \n                for ( var i:int=0; i&lt;dp.length; i++ )\n                {\n                    var obj:Object = dp[i];\n                    if ( obj.hasOwnProperty(labelField) )\n                    {\n                        var val:String = String(obj[labelField]);\n                        if ( val == w.getValue() )\n                        {\n                            selItem = obj;\n                            break;\n                        }\n                    }\n                }\n                \n                site.selectedItem = selItem;\n            };\n                \n            w.setHandler(func);\n            func(null);\n        }\n        else\n        {\n            func = function(event:*):void\n            {\n                var value:Object = w.getValue();\n                if ( value == null )\n                {\n                    site[prop] = null;\n                }\n                else\n                {\n                    site[prop] = String(w.getValue()[labelField]);\n                }\n            };\n            w.setHandler(func);\n            func(null);\n        }\n    }\n    \n    return w;\n}\n</code></pre>\n'}, {'answer_id': 378558, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>It is better to override the property in question and declare it final.</p>\n'}]
['https://Stackoverflow.com/questions/5982', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/22/']