Stephen, If you are returning a CFQuery I find it easy to type it as an ArrayCollection. Flex is case sensitive, and more than likely your event.result should be all caps for the field name ( this.detailObject.FIRSTNAME ).
You can verify this by setting a breakpoint in your function where assign your event.result to your detailObject and look at the variables. If you have an empty event.result, then it's a communication issue with the server. Brian.. -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of stephen50232 Sent: Tuesday, November 28, 2006 8:01 AM To: [email protected] Subject: [flexcoders] Problems binding the event.result to an object Hi, I'm still getting use to Flex, and I'm having a bit of trouble Binding the results of an event to a Object. I have a AS page called Stafftbluser.as, which represents a CFC of mine called tblUserBean.cfc. I also have a function which gets the details of a user from a RemoteObject call and then should bind the results to a object of type Stafftbluser, but when I display the even.result in an Alert (using Alert.show()) I can see the returned results, but in the object I'm binding to when I display this in a Alert it is null. I'm first creating a Stafftbluser object, like this: private function initComponent():void { this.detailObject = new StafftblUser(); } Then in my result handler I'm trying to set the event.result to a variable which I then set to this.detailObject. private function get_result(event:ResultEvent):void { Alert.show( "event " + ObjectUtil.toString(event.result) ); var detail = event.result as StafftblUser; Alert.show( "Detail " + ObjectUtil.toString(detailObject) ); this.detailObject = detail; } Then in a form in my Flex page I'm trying to bind the properties of detailObject: <mx:FormItem width="100%" label="Firstname" required="true"> <cfComponents:TextInputMask id="tblUser_Firstname" text="{this.detailObject.Firstname}" width="100%" /> </mx:FormItem> Some of this was written using the CF/Flex application wizard, but I think this have complicated things. So what's the easiest and quickest way to bind results from a RemoteObject call to a ActionScript class and display the results? Thanks Stephen -- 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 *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***

