[flexcoders] Re: unable to bind to property on class....

2007-04-10 Thread Paul DeCoursey
Binding depends on the object being able to dispatch events to notify the bind target that the property changed. To get around this you simply extend EventDispatcher. ie. public class session extends EventDispatcher { that will fix the warnings and bind your properties. Paul --- In

[flexcoders] Re: unable to bind to property on class....

2007-04-10 Thread scott_flex
Actully, and i should have noted that in first post, i did try that, but same warnings and same effect, no errors, but my property did not bind to my label's text. Would it or could it have anything to do with the fact it's a singleton object??... I wouldn't think so. Not shown in the

[flexcoders] Re: unable to bind to property on class....

2007-04-10 Thread Paul DeCoursey
do you have a setter on the property? I don't see one in the code you posted. You need a setter for it to bind. Or at least you must fire a PropertyChangeEvent when the property changes. Paul --- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote: Actully, and i should have

[flexcoders] Re: unable to bind to property on class....

2007-04-10 Thread scott_flex
Thanks, that did it, I initialized the value of userDisplayName via my setter (which I didn't have before), instead of just through the private _userDisplayName variable, bindings worked! I still get this message though: warning: unable to bind to property 'current' on class 'com::session'

[flexcoders] Re: unable to bind to property on class....

2007-04-10 Thread JWOpitz
Have you looked into using the metatags on the setter/getter? Making the class itself bindable? I wrote a post about this a while back, maybe you can get some info off of it: http://jwopitz.wordpress.com/2007/03/29/a-common-binding-issue-and-a-work-around/ --- In flexcoders@yahoogroups.com,