I just tried the code and I got the same error in flash.
How about starting afresh with different code. Are yuo sure that no
Application.cfm file is running?
The cfc code you posted, are you using variables in place of anything or is
the code exactly as you showed us?
Ade
-----Original Message-----
From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
Sent: 07 January 2004 11:00
To: CF-Talk
Subject: Re: flash remoting help: UPDATED
did that and it worked fine :(
On 7 Jan 2004, at 10:57, Adrian Lynch wrote:
> Application.cfm will be run too, make sure there's no code in there
> that
> might be causing problems. You might also want to call the function
> from a
> cfm page to make sure it's working.
>
>
> <cfscript>
> obj = CreateObject("component", "sendme");
> <cfscript>
>
>
> <cfdump var="#obj.sayHello()#" />
>
>
> Put it in the same directory as the cfc and then browse it.
>
>
> Ade
>
> -----Original Message-----
> From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
> Sent: 06 January 2004 22:38
> To: CF-Talk
> Subject: Re: flash remoting help: UPDATED
>
> Changed the appropriate bit to:
>
> function init () {
> NetServices.setDefaultGatewayUrl("http://lightwillrise.com:27000/
> flashservic
> es/gateway");
> conn = NetServices.createGatewayConnection();
> service = conn.getService("cfcremoting.sendMe",this);
> service.sayHello();
> trace('connected');
> }
>
> function sayHello_Result(result) {
> trace(result);
> trace('blah');
> }
>
> init();
>
> stop();
>
> And it made no difference!!
>
> On 6/1/04 10:40 pm, "Mark A. Kruger - CFG" <[EMAIL PROTECTED]>
> wrote:
>
> > 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]

