RE: flash remoting help: UPDATED
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]
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]
RE: flash remoting help: UPDATED
You mean you got a result from the cfc via CF? 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]
Re: flash remoting help: UPDATED
i get the result i should from coldfusion yep there's no application.cfm, and the code is exactly as i posted :) On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
RE: flash remoting help: UPDATED
OnRequestEnd.cfm prehaps? :O) -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED i get the result i should from coldfusion yep there's no application.cfm, and the code is exactly as i posted :) On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
Re: flash remoting help: UPDATED
nope :) On 7 Jan 2004, at 12:08, Adrian Lynch wrote: OnRequestEnd.cfm prehaps? :O) -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED i get the result i should from coldfusion yep there's no application.cfm, and the code is exactly as i posted :) On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
RE: flash remoting help: UPDATED
Damn, then I'm out of ideas. Just to be sure that no app.cfm is running, create a new one that's empty!! :OD If you trace the details of the returned error (status.details) you'll see the stack trace from CF, one of them mentions something like end or empty tag, might be worth asking if anyone knows what this relates to. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:09 To: CF-Talk Subject: Re: flash remoting help: UPDATED nope :) On 7 Jan 2004, at 12:08, Adrian Lynch wrote: OnRequestEnd.cfm prehaps? :O) -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:00 To: CF-Talk Subject: Re: flash remoting help: UPDATED i get the result i should from coldfusion yep there's no application.cfm, and the code is exactly as i posted :) On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
Re: flash remoting help: UPDATED
if you got an error from flash too, then could you give me a bit of code that does work for you then? and i will test it? just something simple! On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
RE: flash remoting help: UPDATED
Here's the code I had in the fla: #include NetServices.as NetServices.setDefaultGatewayUrl( http://lightwillrise.com:27000/flashservices/gateway http://lightwillrise.com:27000/flashservices/gateway ); conn = NetServices.createGatewayConnection(); conn.getService(cfcremoting.sendMe,this).sayHello(); function sayHello_Result(result) { trace(result); } function sayHello_Status(status) { trace(status.description); trace(status.details); } This was the line that interested me: at coldfusion.compiler.cfml40.endOrEmptyTag(cfml40.java:411) not sure if it has any significance though. -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:36 To: CF-Talk Subject: Re: flash remoting help: UPDATED if you got an error from flash too, then could you give me a bit of code that does work for you then? and i will test it? just something simple! On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
Re: flash remoting help: UPDATED
yeah i get teh same stack trace... could you give me a simple bit of cfc code that works for you...? On 7 Jan 2004, at 12:50, Adrian Lynch wrote: Here's the code I had in the fla: #include NetServices.as NetServices.setDefaultGatewayUrl( http://lightwillrise.com:27000/flashservices/gateway http://lightwillrise.com:27000/flashservices/gateway ); conn = NetServices.createGatewayConnection(); conn.getService(cfcremoting.sendMe,this).sayHello(); function sayHello_Result(result) { trace(result); } function sayHello_Status(status) { trace(status.description); trace(status.details); } This was the line that interested me: at coldfusion.compiler.cfml40.endOrEmptyTag(cfml40.java:411) not sure if it has any significance though. -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:36 To: CF-Talk Subject: Re: flash remoting help: UPDATED if you got an error from flash too, then could you give me a bit of code that does work for you then? and i will test it? just something simple! On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
RE: flash remoting help: UPDATED
This is about as simple as it gets. cfcomponent cffunction name=myFunction access=remote returntype=string cfreturn Hella cool / /cffunction /cfcomponent Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:55 To: CF-Talk Subject: Re: flash remoting help: UPDATED yeah i get teh same stack trace... could you give me a simple bit of cfc code that works for you...? On 7 Jan 2004, at 12:50, Adrian Lynch wrote: Here's the code I had in the fla: #include NetServices.as NetServices.setDefaultGatewayUrl( http://lightwillrise.com:27000/flashservices/gateway http://lightwillrise.com:27000/flashservices/gateway http://lightwillrise.com:27000/flashservices/gateway ); conn = NetServices.createGatewayConnection(); conn.getService(cfcremoting.sendMe,this).sayHello(); function sayHello_Result(result) { trace(result); } function sayHello_Status(status) { trace(status.description); trace(status.details); } This was the line that interested me: at coldfusion.compiler.cfml40.endOrEmptyTag(cfml40.java:411) not sure if it has any significance though. -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 07 January 2004 12:36 To: CF-Talk Subject: Re: flash remoting help: UPDATED if you got an error from flash too, then could you give me a bit of code that does work for you then? and i will test it? just something simple! On 7 Jan 2004, at 11:50, Adrian Lynch wrote: You mean you got a result from the cfc via CF? 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]
Re: flash remoting help: UPDATED
you are a star! the problem wasnt with the script as such, i had fixed that error earlier, but i had set teh default mapping / to a directory other than that, and as such thought that i should put the script in the place the mapping specified... i guess not after all! On 7 Jan 2004, at 13:52, Mauricio Giraldo wrote: rant maybe you could edit your reply so we dont get the infinite-scroll page :) /rant well I copy/pasted your code and it works just fine... it came to me to give it a test via CFM with web services (any CFC with access = remote is a webservice)... so I typed: http://lightwillrise.com:27000/cfcremoting/sendMe.cfc?wsdl and I get: Invalid CFML construct found on line 23 at column 17. The error occurred in D:\WWWRoot\DefaultSite\www\CFIDE\administrator\cfcremoting\sendMe.cfc: line 23 21 : 22 : cfset s = blah 23 : cfreturn s 24 : 25 : /cffunction I believe that line 23 should read cfset s = blah Missing a ? Mauricio [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
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]
RE: flash remoting help: UPDATED
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]
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]
RE: flash remoting help: UPDATED
Ryan, I'm not convinced that your are connecting to your cfc then. The createGatewayconnection( ) call seems to be working, but the cfc call is failing. What happens when you call the CFC from a cold fusion page?You might get a more informative message.Other than that - you appear to be doing it just like I do it - except for the non-standard port (2700) ... what's that about? -mark -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 4:38 PM 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]