Thanks for that Amy.

Doesn't that only work if you have a set isAllowed() as well?

Unfortunately, in my scenario, isAllowed() is not set in this kind of way -
its more of a calculation based on various vars elsewhere (some
non-bindable).


Amy-28 wrote:
> 
> how bout
> 
> [Bindable (event='allowChanged')]
> function get isAllowed():Boolean {
>    return allowThis();
> }
> 
> Then any time something happens that changes the way allowThis() 
> evaluates, do this:
> 
> dispatchEvent(new Event('allowChanged'));
> 
> HTH;
> 
> Amy
> 

-- 
View this message in context: 
http://www.nabble.com/Best-practice-for-databinding-with-MenuBar--tp20622610p20633166.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to