Flash Remoting Call Does Nothing

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Flash Remoting Call Does Nothing

    I am using the following code to call a cfc and fill a datagrid.

    <cfsavecontent variable="getData">
    //create connection. Should be installed by default with CFMX7 with correct
    path
    var connection:mx.remoting.Connection =
    mx.remoting.NetServices.createGatewayConnection("h ttp://#cgi.HTTP_HOST#/flashser
    vices/gateway/");

    //declare service
    var myService:mx.remoting.NetServiceProxy;

    var responseHandler= {};

    //put the controls in scope to avoid calling _root
    var commentID = commentID;
    var donorID = donorID;
    var lastname = lastname;
    var firstname = firstname;
    var keyword = keyword;
    var searchResults = searchResults;

    //make an object that will handle the response
    var responseHandler = {};

    //function that receives the response
    responseHandler.onResult = function( results: Object ):Void {
    //when results are back, we show the text received
    searchResults.dataProvider = results;
    }

    //function that receives any error that may have occurred during the call
    responseHandler.onStatus = function( stat: Object ):Void {
    //if there is any error, show an alert
    alert("Error while calling cfc:" + stat.description);
    }

    //get service. First parameter is path to component and
    //the second it's the object that will handle the response
    myService = connection.getService("CustomerService.CFC.Searche s",
    responseHandler );

    //make call

    myService.getSearchData('#APPLICATION.dsn#',commen tID.text,donorID.text,lastnam
    e.text,firstname.text,keyword.text);
    </cfsavecontent>

    I'm calling the remote by this code:

    <cfinput type="button" name="show" value="Submit" onclick="#getData#">

    I don't get any action at all. If I intentionally change the name of the CFC I
    don't even get an error. I have other apps remoting off the same server and
    have no issue. Do you happen to see where I've screwed up? I don't have much
    hair left to pull out. I Appreciate it.
    Thanks.


    Mark Forsberg Guest

  2. Similar Questions and Discussions

    1. Flash Remoting from Flash (not Flex) via AMF3
      Hello, I'm trying to fashion a flash application with AS3 under Flash against Coldfusion 8 via the AMF3 / flex2gateway. I receive this error on...
    2. Flash and .NET (remoting)
      Hi all, I am Olivier and i am new in the forum. I would like to know why it's difficult to have a documentation for Flash remoting.net on the...
    3. Consuming Flash arrays with flash remoting
      Hello, Does anyone know of some resources where you can get examples of consuming a flash array with a coldfusion component using flash...
    4. Flash Media Server vs Flash Remoting
      I was wondering what are the pros and cons of moving our text based broadcast service from Flash Remoting to Flash Media server. Right now we have...
    5. Does Flash Communication server include Flash remoting ?
      We plan to use Flash communication server and flash remoting. Now the most simple question, does the com-server already include flash remoting ? ...
  3. #2

    Default Re: Flash Remoting Call Does Nothing

    I got it. <cfoutput> tags work well when trying to output a variable.

    <cfoutput><cfinput type="button" name="show" value="Submit" onclick="#getData#"></cfoutput>

    DOH! Time for beer.

    Mark Forsberg Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139