You can actually bind to a variable by also using the BindingUtils.bindProperty() method. You just need to you the "this" keyword. So: BindingUtils.bindProperty(dogNameText, "text", this, "myString"); Don't forget to enclose your variable in double quotes since that last parameter must be a string. The only catch is that the myString variable needs to be a public property otherwise you'll get runtime errors. If you really want to keep myString protected or private, then you have to use the BindingUtils.bindSetter() method as it was earlier suggested by Rajan.
________________________________ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rajan Jain Sent: Friday, May 22, 2009 5:34 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] BindingUtils question. Try using BindingUtils.bindSetter and create function. ________________________________ From: markflex2007 <markflex2...@yahoo.com> To: flexcoders@yahoogroups.com Sent: Friday, May 22, 2009 5:07:21 PM Subject: [flexcoders] BindingUtils question. I read a demo BindingUtils. bindProperty( dogNameText, "text", myDog, "name") dogNameText is textInput and myDog is a object how to I bind dogNameText' s Texr property to one variable like "myString" BindingUtils. bindProperty( dogNameText, "text", myString) give me error. Please give me a idea how to do this.Thanks Mark