Re: [flexcoders] Binding to a custom method: possible?

2006-11-29 Thread Lachlan Cotter
Hi Ben, Your problem is probably that you have not told Flex when it needs to fire the binding. The binding mechanism works by broadcasting events from the setter methods of bindable properties. If there is no direct setter involved, then Flex does not automatically know to refresh the da

Re: [flexcoders] Binding to a custom method: possible?

2006-11-28 Thread slangeberg
In this case, your function is not referencing anything Bindable. Something like this may work, but please clarify - if this is not what you're looking for: [Bindable] private var bindableProp:String; private function isEnabled( s:String ):Boolean { ... } On 11/28/06, ben.clinkinbeard <[EMAIL

[flexcoders] Binding to a custom method: possible?

2006-11-28 Thread ben.clinkinbeard
There was a similar question asked here recently but my needs are different so I am starting a new thread. My needs are as follows: I have a ComboBox whose enabled state needs to be determined by several factors, thus the need for a custom method. The problem is that this doesn't seem to work, no m