How would one apply this to situations where the bound variable is a primitive? For instance,
var watcherSetter:ChangeWatcher =
BindingUtils.bindSetter(updateMyString, someString, ????what goes here????);
Thanks.
By my reading, in this case, the third arg is a String that contains the name of a public bindable property of the host object. I don't think data type comes into play.
Am I missing something?
Randy Nielsen
Senior Content and Community Manager
Adobe Systems Incorporated
Hopefully, you’ve declared someString as a property on some object.
The second parameter is the object, the third parameter is the name of the property “someString”.
If in doubt, post a short code snippet.
I was looking for the equivalent of:
<s:Label id="myLabel" text="{myString}"/>
Realized it would be simply:
BindingUtils.bindSetter(updateMyString, this, "myString");
Thanks for the responses.