Yeah,

If you have a UIComponent (or subclass of), you can bind properties in
the initialize() function.

You can also overload the setters, and create/manage the bindings in
the setters. Just remember when the setter changes to a new value, you
need to remove the old binding to the previous value of the property
to release it's reference.

Thunder

--- In flexcoders@yahoogroups.com, "Sergey Kovalyov"
<[EMAIL PROTECTED]> wrote:
>
> Hi All!
> 
> I want to bind some properties of some controls (like Validator)
> created in constructor to some properties of class. But constructor is
> called before all the properties are set via respective setters from
> MXML component instantiation. So the binding in constructor dependent
> on properties, defined during instantiation results in null exception,
> because default property equals null while in constructor. Any ideas?
> 
> Regards, Sergey.
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> 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/
 



Reply via email to