That should work. I can't tell exactly where the _validator and _image
properties are defined, but if they're just children of your
component, they should be initialized by the time initialize() is called.

cheers,
Thunder

--- In [email protected], "Sergey Kovalyov"
<[EMAIL PROTECTED]> wrote:
>
> So I can do it this way:
> 
> public override function initialize() : void {
>         super.initialize();
>         BindingUtils.bindProperty(_validator, "expression", this,
"expression");
>         BindingUtils.bindProperty(_image, "source", this,
"imageSource");
> }
> 
> True?
> 
> On 8/10/06, thunderstumpgesatwork <[EMAIL PROTECTED]> wrote:
> > 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 [email protected], "Sergey Kovalyov"
> > <skovalyov.flexcoders@> 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
> >
> >
> >
> >
> >
> >
> >
> >
>







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