Try:
[Bindable]
var currClient:Client;
Tracy
From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Derek Stottlemyer
Sent: Monday, July 03, 2006 1:34
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] (without
Cairngorm) Data binding will not be able to detect assignments...
Hello all,
I have the same problem without Cairngorm. I'm trying to bind a Class
property to a Label as well...
extending the Class as an ObjectProxy or not doesn't make a difference. I've
also tried moving [Binding] above public var fullname to no avail.
Can anyone offer a suggestion?
Thanks,
Derek
MY MXML
8"?>
http://www.adobe.com/2006/mxml"
layout="absolute"
creationComplete="init()">
//This is the line that gives me trouble. I get an alert that "Data
Binding
will not be able to detect assignments to 'currClient'" When
compiled, this
label is blank.
//This label shows "show Joe Smith" as expected.
MY CLASS(Client);
package
import mx.utils.ObjectProxy;
[Bindable]
public class Client extends ObjectProxy
{
public var fullname:String;
function Client(x:XML):void{
fullname=x.fname+" "+x.lname;
}
public function Showname():String{
return fullname;
}
}
}
__._,_.___
--
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
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___