Flash Remoting from Flash (not Flex) via AMF3

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

  1. #1

    Default 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 invocation:

    Flex] Error handling message: flex.messaging.MessageException: Unable to find
    source to invoke
    incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage)
    operation = player
    clientId = 3C03BA13-2808-72A6-14BB-518DC8B490D2
    destination = ColdFusion
    messageId =
    timestamp = 1217791691176
    timeToLive = 1217791691176
    body = null
    hdr(DSEndpoint) = my-cfamf
    errorReply: Flex Message (flex.messaging.messages.ErrorMessage)
    clientId = 3C03BA13-2808-72A6-14BB-518DC8B490D2
    correlationId =
    destination = ColdFusion
    messageId = 3C03BA13-2819-D62F-90EC-E1ADD77DB354
    timestamp = 1217791691176
    timeToLive = 0
    body = null
    code = Server.Processing
    message = Unable to find source to invoke
    details = null
    rootCause = null
    body = null
    extendedData = null

    <code>
    public function RemotingTestInit () {
    init ();
    }

    private function init() {
    rs = new RemotingService("http://dev.tcheeky.com/flex2gateway/");
    var responder:Responder = new Responder(onResult, onFault);
    var params:Object = new Object();
    params.arg1 = "lib";
    params.arg2 = "functions";
    params.arg3 = "player";
    params.arg4 = "doRead";
    rs.call("ColdFusion.player", responder, "doRead()");
    }

    private function onResult(result:Object):void {
    trace (result);
    trace("test1");
    for each (var item in result) {
    trace("test2");
    trace("item: " + typeof(item) );
    if(typeof(item) == "object"){
    trace("test3");
    trace("item: " + typeof(item) ); ///-------?????DOES
    NOT WORK???
    // trace( obj[item].getValue() ); // BOTH DO NOT
    WORK???

    } else if(typeof(item) == "string"){
    trace(item);
    }
    }
    }

    private function onFault(fault:Object):void {
    trace(fault);
    trace("testfail");
    for each (var item in fault) {
    trace("item: " + typeof(item) );
    if(typeof(item) == "object"){
    trace("item: " + typeof(item) ); ///-------?????DOES NOT WORK???
    //trace( object[item].getValue() ); // BOTH DO NOT
    WORK???

    } else if(typeof(item) == "string"){
    trace(item);
    }
    }
    </code>


    strobe3 Guest

  2. Similar Questions and Discussions

    1. CF vs Flash remoting vs Flex
      From reading the docs on the products, it's really hard to tell what CF has and what Flex and the flash remoting server would provide over CFMX7. ...
    2. 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...
    3. 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...
    4. 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 ? ...
    5. Flex and Flash Remoting
      Hi, Just getting into Flex... Can Flex consume Flash remoting? I ask because we have a lot of code running on Flash remoting (FlashOrb and...
  3. #2

    Default Re: Flash Remoting from Flash (not Flex) via AMF3

    Sounds like you need to enable mappings for your remoting gateway. I'm not sure
    if it's the same as Flex, but here's what you might need to do, or something
    similar...

    In c:\cfusion8\wwwroot\WEB-INF\flex\remoting-config.xml (or wherever CF is
    installed) look for the <use-mappings> node and set the value to true. You
    will need to restart CF

    ErikMadsen 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