Here is where the connection is setup in the main file:


<mx:RemoteObject id="mr_cfc" endpoint="http://cfxtest.research.unc.edu/flashservices/gateway" source="mr.mr_cfc" fault="mx.controls.Alert.show(event.fault.faultstring)" showBusyCursor="true" >
    <mx:method name="get_people" result="doResultGetPeople(event.result)" />
    <mx:method name="get_person" result="doResultGetPerson(event.result)" />
    <mx:method name="get_tech_search" result="doResultGetTechSearch(event.result)" />
    <mx:method name="get_tech_detail" result="doResultGetTechDetail(event.result)" />
    <mx:method name="get_tech_events" result="doResultGetTechEvents(event.result)" />
    <mx:method name="get_tech_inventors" result="doResultGetTechInventors(event.result)" />
    <mx:method name="get_tech_patents" result="doResultGetTechPatents(event.result)" />
    <mx:method name="get_tech_agreements" result="doResultGetTechAgreements(event.result)" />
    <mx:method name="get_tech_financeIncurred" result="doResultGetTechFinanceIncurred(event.result)" />
    <mx:method name="get_tech_expense1" result="doResultGetTechExpense1(event.result)" />
    <mx:method name="get_tech_expense2" result="doResultGetTechExpense2(event.result)" />
    <mx:method name="get_tech_expense3" result="doResultGetTechExpense3(event.result)" />
    <mx:method name="get_tech_financeIncome" result="doResultGetTechFinanceIncome(event.result)" />
    <mx:method name="get_tech_financeProjected" result="doResultGetTechFinanceProjected(event.result)" />
</mx:RemoteObject>



Here is some of the .as code


//************* Events *****************
private function getTechEvents():Void {
    mr_cfc.get_tech_detail(tech_key);
}

private function doResultGetTechEvents(result:Array):Void {
    var TempObject:Object = new Object();
    var TempArray:Array = new Array();
    for(var i=0; i < result.length; i++){
     TempObject = result[i];
     TempArray.push(TempObject);
    }
    otd_tech_events_grid.dataProvider = TempArray;

}


David Harris wrote:
There are a couple of ways I have used to debug calls to CFCs...

Create a CFM template and call the methods on the CFC the same way you
want your Flex app to. This will let you know if it is the CFC having
a problem.

When you call the method, dump out and write the dump to file using
<cfsavecontent>
This way you can see what CF is getting from the Flex app.

May be usefull to see your calling Flex code to give us an idea of how
you are calling the cfc.

On 9/28/05, Greg Johnson <[EMAIL PROTECTED]> wrote:
>  We are currently running the dev/demo copy of flex to see if it will do
>  what we need.  Thing is we have ran into a strange bug.
>
>  The code makes a call to a CFC and gets back data fine the first time,
>  but the second time we make a call it just gets hung up.  Yet I don't
>  run into the problem when I am on the server itself.  Any ideas? or
>  questions? :)
>
>  --
>  Greg Johnson
>  Owner & Lead Technician
[EMAIL PROTECTED]
>
>  Techno-Fix-It
>  Filling the Gap Between the Store and the Repair Shop
>  ----------------------
www.technofixit.com
>  Phone:(919)-371-1476
>  Fax:(919)-882-9804
>  P.O. Box 1094
>  Morrisville, N.C. 27560
>
>
>
>  --
>  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
>
>
>  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.
>
>  ________________________________
>



As a professional in computers, I personaly recommend Avast Antivirus
avast! Antivirus: Inbound message clean.

Virus Database (VPS): 0539-1, 09/27/2005
Tested on: 9/28/2005 8:18:45 AM
avast! - copyright (c) 2000-2004 ALWIL Software.



-- 
Greg Johnson
Owner & Lead Technician
[EMAIL PROTECTED]

Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
----------------------
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560


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