old thread but i just experienced this.  Reason I had the issue was I failed to set up my Flex project correctly!  You have to choose 'ColdFusion Flash Remoting Service' as a project type and go from there.  Then the proper stuff is compiled into the SWF.

DK

On 7/27/06, Jeremy Rottman <[EMAIL PROTECTED]> wrote:
ok well I got it to work with this code. But this isnt exactly how I
want it to work. Do I have to use test.<component name> and do I have
to add the end point.


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">

        <mx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                        import mx.rpc.Fault;
                        import mx.rpc.events.FaultEvent;
                        import mx.rpc.events.ResultEvent;

                        private function qryService_userSearch(lastName){
                                qryService.userSearch(lastName)
                        }

                        private function qryService_userSearch_Result(event:ResultEvent):void{
                                testDG.dataProvider = event.result;
                        }

                        private function qryService_userSearch_Fault(event:FaultEvent):void{
                                 Alert.show(event.fault.message);
                        }
                ]]>
        </mx:Script>


        <mx:RemoteObject
                id="qryService"
                destination="ColdFusion"
                source="test.ROtest"
                result="qryService_userSearch_Result(event)"
endpoint="http://fx3.homesmartagent.com/flex2gateway/ "
                showBusyCursor="true"
                fault="qryService_userSearch_Fault(event)"/>
        <mx:Canvas x="0" y="0" width="100%" height="100%">
                <mx:Label x="10" y="10" text="Name:"/>
                <mx:TextInput id="lastName" x="60" y="8"/>
                <mx:Button x="228" y="8"
click="qryService_userSearch(lastName.text)" label="Button"/>
                <mx:DataGrid x="10" y="38" id="testDG" width="90%" height="100%">
                        <mx:columns>
                                <mx:DataGridColumn headerText="Column 1"
dataField="fld_agentFullName"/>
                                <mx:DataGridColumn headerText="Column 2" dataField="fld_agentId"/>
                                <mx:DataGridColumn headerText="Column 3" dataField="fld_agentEmail"/>
                        </mx:columns>
                </mx:DataGrid>
        </mx:Canvas>









</mx:Application>







--
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/







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it? __._,_.___

--
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