Hi Amy,

as far as I know there is no way to remove a Binding that has been
created via an mx:Binding tag. To be able to remove Bindings, you can
keep track of ChangeWatchers that have been created in AS (instead of
MXML) via BindingUtils.bindProperty/bindSetter and remove them with a
call of ChangeWatcher.unwatch. E.g. Store your ChangeWatchers in an
array - unwatch and remove one or all of them when needed.

Example:

var watchers : Array = [];
var cw : ChangeWatcher = BindingUtils.bindProperty(...);
watchers.push(cw);

ChangeWatcher(watchers.pop()).unwatch();

If you can change the code of your super class, use BindingUtils
instead of mx:Binding and remove the ChangeWatchers in the subclass.

-- 
david keutgens
software consultant
cynergy australia

web | http://www.cynergysystems.com



--- In [email protected], "amywongwy" <amywon...@...> wrote:
>
> Hi,
> 
> Is there a way to remove the mx:Binding tag?
> 
> In the super class, I have this mx:Binding like this:
> <mx:Binding source="getText()"        destination="testText"/>
> 
> I would like to remove it in the subclass, is there a way that I can
> remove it?
> 
> Cheers,
> Amy
>


Reply via email to