Sergey,

 

Maybe you can fix it by providing default value in getter function? There’s no such case in your code.

 

So I think adding default case value like:

 

default :

result = DEFAULT_EXPRESSION;
}

will do the job!

 

 

Sincerely,

Rostislav Siryk
Senior Graphic Designer
Validio Ukraine
[EMAIL PROTECTED]


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sergey Kovalyov
Sent: Tuesday, August 08, 2006 5:09 PM
To: [email protected]
Subject: [flexcoders] Exception while using BindingUtils.bindProperty()

 

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to