You need User to be bindable itself (or name):
[Bindable]
Public class User
{
Public var name:String;
...
}
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Yiðit
Boyar
Sent: Wednesday, November 15, 2006 2:56 PM
To: [email protected]
Subject: [flexcoders] own classes with bindable properties
i have a class(user) and have to implement an editor component for my class.
i want to bind variables of my user to components (e.g. textInput) but
flexBuilder
warns me that my class is not bindable....
When i try to define my variables bindable in my class, AS3 does not realize
them. (ref:
http://www.mail-archive.com/flexcoders%40yahoogroups.com/msg38614.html
<http://www.mail-archive.com/flexcoders%40yahoogroups.com/msg38614.html> )
so how can i do this? i want that, textInput component should be updated when i
call
user.load();
/////////////
example:
[Bindable]
var me:User=new User();
....
me.load(2); //load user id 2
...........
e.g: <mx:textInput text="{me.name}">
///////////
thanks...