作者:时刻要有危机感01 | 来源:互联网 | 2022-12-27 16:30
MXMLletsyoudosomereallyquitepowerfuldatabindingsuchas:MXML允许您执行一些非常强大的数据绑定,例如:<mx:B
MXML lets you do some really quite powerful data binding such as:
MXML允许您执行一些非常强大的数据绑定,例如:
I've found that the BindingUtils class can bind values to simple properties, but neither of the bindings above do this. Is it possible to do the same in AS3 code, or is Flex silently generating many lines of code from my MXML? Can anyone duplicate the above in pure AS3, starting from:
我发现BindingUtils类可以将值绑定到简单属性,但上面的绑定都没有这样做。是否可以在AS3代码中执行相同操作,或者Flex是否默认从我的MXML生成许多代码行?任何人都可以在纯AS3中复制上述内容,从以下开始:
var myBtn:Button = new Button();
myBtn.id="myBtn";
???
3 个解决方案