Say I have a variable counting up to 10 and back down to 1.  It does
this in a loop, just going from 1 to 10 back down to 1 back up to 10..

The variable is bindable.  Let's call it COUNT.

I have a Label that has COUNT as its data source, so the label's text
value goes from 1 up to 10 and back down again.

Now, let's say I have a button that I want to enable whenever the
variable is equal to 5.  There is a little more logic around this
behavior and so I don't think it's a flat out dataprovider solution.

What I think I'd like to do is add my own event listener to COUNT and
it would do the logic of checking to see if COUNT's new value == 5 and
if so, enabling the button.

But most of that observer/observable interface seems hidden to me via
the [Bindable] construct.  Then my method could do whatever additional
logic I can dream of.

Is there a way to add my own listener methods to [Bindable] variables?
 Or is there another standard way of addressing these issues within
the Flex paradigm?

Thanks much -
cris.

Reply via email to