कोड यहाँ है। यह मूल रूप से 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