Ryan,

Yeah - your function is using a var to set your service.  The responder is out of scope. get rid of the var.

-mark

  -----Original Message-----
  From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, January 06, 2004 4:28 PM
  To: CF-Talk
  Subject: Re: flash remoting help: UPDATED

  Ok, lets start over :o)

  The flash movie now connects, well let me explain:

  The flash movie itself is a 1-frame wonder:

  // Include the Required NetService class files
  #include "NetDebug.as"
  #include "NetServices.as"
  #include "DataGlue.as"
  // connect to the Flash Remoting service provider

  function init () {
  NetServices.setDefaultGatewayUrl("http://lightwillrise.com:27000/flashservic
  es/gateway");
  var conn = NetServices.createGatewayConnection();
  var service = conn.getService("cfcremoting.sendMe",this);
  service.sayHello();
  trace('connected');
  }

  function sayHello_Result(result) {
  trace(result);
  trace('some text');
  }

  init();

  stop();

  And the cfc is as follows:

  <cfcomponent>
      <cffunction name="sayHello" access="remote" output="true"
  returntype="string">
          <cfset message = "hello">
          <cfreturn message>
      </cffunction>
  </cfcomponent>

  Now, in the output in flash debug I get ³connected², but nothing from the
  responder function...

  Any thoughts?

  Thanks for ALL the help!
  Ryan
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to