When u create a binding from object A to B, a reference is added to A. (A keeps a reference to B). It will not be garbage collected until you unwatch the changeWatcher it or delete A.
So if your concern is whether u need to keep a reference to ChangeWatcher object returned by mx.binding.utils <http://livedocs.adobe.com/flex/2/langref/mx/binding/utils/package-detail.html>. bindSetter <http://livedocs.adobe.com/flex/2/langref/mx/binding/utils/BindingUtils.html#bindSetter%28%29> , the answer is no, you dont need to keep a reference to CW. yigit Alex Harui wrote: > > I think you have to call unwatch otherwise the CW may not get GC’d > > ------------------------------------------------------------------------ > > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] > *On Behalf Of *Josh McDonald > *Sent:* Tuesday, August 19, 2008 10:57 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Question about binding via AS > > Hey guys, > > If you create a binding via AS, will the binding "stop" when the > returned ChangeWatcher instance is garbage collected? If not, is > ChangeWatcher sort of a "pointer" to some player-internal stuff, or is > there a strong reference to the ChangeWatcher via the event binding to > PropertyChange on the host? > > -Josh > > -- > "Therefore, send not to know For whom the bell tolls. It tolls for thee." > > :: Josh 'G-Funk' McDonald > :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/