I got it. The problem is that my getter is protected. Property must be
public only in order to be source for databinding event if you use it
inside one class, because BindingUtils is external class and it can't
access the private or protected property to make databinding possible.

On 8/8/06, Sergey Kovalyov <[EMAIL PROTECTED]> wrote:
> Hi All!
>
> I have a class and RegExpValidator instance _validator inside it. When
> I try to bind _validator.expression with expression() getter inside
> the class, I get exception:
>
> ReferenceError: Error #1069: Property expression not found on
> TextInputMessengerLabel and there is no default value.
>
> The assignment itself looks like:
>
> BindingUtils.bindProperty(_validator, "expression", this, "expression");
>
> The expression getter:
>
> [Bindable(event="messengerChange")]
>                protected final function get expression() : String {
>                        var result : String;
>                        switch (messenger) {
>                                case ICQ :
>                                        result = ICQ_EXPRESSION;
>                                        break;
>                                case SKYPE :
>                                        result = SKYPE_EXPRESSION;
>                                        break;
>                                case YAHOO :
>                                        result = YAHOO_EXPRESSION;
>                                        break;
>                                default :
>                        }
>                        return result;
>                }
>
> Any ideas why it does not work?
>
> 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