Flex 动态绑定BindingUtils.bindProperty

关键字:BindingUtils.bindProperty
需导入:import mx.binding.utils.BindingUtils;
/**
* 动态绑定
* @params site:Object 被绑定对象
* @params prop:String 被绑定对象的属性,如textInput的text属性
* @params host:Object 监视者对象
* @params chain:Object 监视者对象的属性
* @return ChangeWatcher
* **/
BindingUtils.bindProperty(site:Object,prop:String,host:Object,chain:Object);
复制代码 代码如下:


    layout="absolute" initialize="init();">

    
        
    


    
        
        
    


    

    

        

        
        

        

        
            
                
                    Beijing
                    Shanghai
                    Hangzhou
                

            

        


        
        


你可能感兴趣的:(Flex 动态绑定BindingUtils.bindProperty)