[flexcoders] Re: Actionscript Binding - bind a property through a function

2006-09-20 Thread gsamsa
This should work pretty much just the way your example works, so maybe one of your parameters isn't bindable?The following example works, and also illustrates another less elegant way of accomplishing the same thing?xml version="1.0" encoding="utf-8"?mx:Application

[flexcoders] Re: Actionscript Binding - bind a property through a function

2006-09-20 Thread thunderstumpgesatwork
Hi.. I was asking about how to do it through ActionScript... I have done it and know it works in mxml. I'm talking about adding a property binding using just actionscript, and some incantation of a mx.binding.utils.ChangeWatcher or mx.binding.utils.BindingUtils Thunder --- In

Re: [flexcoders] Re: Actionscript Binding - bind a property through a function

2006-09-20 Thread aaron smith
Give this a try:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.binding.utils.BindingUtils; [Bindable] public var foo:String = hi; public function init():void {