Re: [flexcoders] Binding using as3
look at BindingUtils.bindProperty() C From: aceoohay To: flexcoders@yahoogroups.com Sent: Wednesday, January 30, 2013 11:17 PM Subject: [flexcoders] Binding using as3 I have customized textinput control with a property of x. In my program I instntiate the control as vtiA. My program has a bindable variable called _y. I would like everytime that _y is changed by my program that the property x of the control vtiA reflects the new values. What I have done that does not work is [Bindable] private var _y; private function whocares():void { var vtiA:MyTextInput = new MyTextInput; vtiA.x = _y } If this were mxml I would just say What is the equivalent in as3? Paul
Re: [flexcoders] Binding using as3
On 30/01/2013 23:17, aceoohay wrote: > I have customized textinput control with a property of x. In my program I > instntiate the control as vtiA. My program has a bindable variable called _y. > > I would like everytime that _y is changed by my program that the property x > of the control vtiA reflects the new values. > > What I have done that does not work is > > [Bindable] private var _y; > > private function whocares():void > { > var vtiA:MyTextInput = new MyTextInput; > vtiA.x = _y > } > > If this were mxml I would just say > > > > What is the equivalent in as3? This might point you in the right direction: http://stackoverflow.com/questions/966047/flex-3-dynamic-creation-and-binding-of-textinput > > Paul > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > >
[flexcoders] Binding using as3
I have customized textinput control with a property of x. In my program I instntiate the control as vtiA. My program has a bindable variable called _y. I would like everytime that _y is changed by my program that the property x of the control vtiA reflects the new values. What I have done that does not work is [Bindable] private var _y; private function whocares():void { var vtiA:MyTextInput = new MyTextInput; vtiA.x = _y } If this were mxml I would just say What is the equivalent in as3? Paul