SOT Flash Remoting Help
I have been working on my first real Flash app. It is a real-time stock portfolio display. Server side is a CFMX program that retrieves real-time quotes from another web site The real-time data is combined with (relatively) static data from an on-site database The server and client exchange data using Flash remoting 1) At the start of each day (or when the client logs on), the clients entire portfolio (static data) is transferred to the client and displayedin a grid (Flash dataGrid) 2) When the Market opens (or when the client logs on), initial real-time data for the client portfolio is sent to the client to populate the grid I have these 2 steps working -- a little slow, but they each only happen once per day per portfolio. 3) The next step is to transmit only the changes to the client, and update the grid, as quickly as tpossible. Here's where I could use some help/ideas. The way I see it, the Flash client will request changes from the server as whenever it can receive them (immediately after receiving the last changes) the server will maintain state and a have a copy of the data on each clientso the CFMX program can determine what has changed since the last changes were sent to the client -- so it can eliminate any unnecessary data to reduce bandwidth. I have implemented similar programs (including a version of this app) using _javascript_ and/or meta tag refresh to trigger the client to make repetitive requests to the server. What is the best way to do this in a Flash client? If anyone has an examples or can point me to a good reference it will be greatly appreciated. TIA Dick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SOT Flash Remoting Help
Dick, I am doing something similar. I take the data retrieved from the server and store it in an array who's keys are populated with a structure containing each record. You could, I guess, also just store the recordset within each key in the array. Personally preference.This complex data is stored in the shared object scope of flash (flash cookies). Which works very nicely for storing complex data. Each record within the array contains a 'lastmodified' date. Each record on the server, in the DB, also has a last modified date. So each time flash run's it: 1) Looks for the shared object, if it does not exist it creates it. 2) creates a list/array of ID's and LastModified dates from the SharedObject Data 3) Call the remote method to getNewData(array_of_existing_data) 4) On the server side, all of the records forthe client are pulled from the DB, and there last modified dates are compared to the dates that were passed to the method. Any records with dates greater than the dates passed from flash are marked for retrieval. Also, any NEW data is also marked for retrieval. This data is then returned to flash 5) Flash looks at the returned data and updates the SO (shared Object) key's which have new/modified data and adds any new data returned to the array. Thats it... was that to general? You can also add an argument to the CFC method, like 'flush', which would return ALL data regardless of the lastmod dates... Brook At 02:21 PM 2/6/2004, you wrote: I have been working on my first real Flash app. It is a real-time stock portfolio display. Server side is a CFMX program that retrieves real-time quotes from another web site The real-time data is combined with (relatively) static data from an on-site database The server and client exchange data using Flash remoting 1) At the start of each day (or when the client logs on), the clients entire portfolio (static data) is transferred to the client and displayedin a grid (Flash dataGrid) 2) When the Market opens (or when the client logs on), initial real-time data for the client portfolio is sent to the client to populate the grid I have these 2 steps working -- a little slow, but they each only happen once per day per portfolio. 3) The next step is to transmit only the changes to the client, and update the grid, as quickly as tpossible. Here's where I could use some help/ideas. The way I see it, the Flash client will request changes from the server as whenever it can receive them (immediately after receiving the last changes) the server will maintain state and a have a copy of the data on each clientso the CFMX program can determine what has changed since the last changes were sent to the client -- so it can eliminate any unnecessary data to reduce bandwidth. I have implemented similar programs (including a version of this app) using _javascript_ and/or meta tag refresh to trigger the client to make repetitive requests to the server. What is the best way to do this in a Flash client? If anyone has an examples or can point me to a good reference it will be greatly appreciated. TIA Dick -- [ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: SOT Flash Remoting Help
If you don't already have it, go buy Flash for Server Geeks.It will make your task a whole lot easier and should answer most of your present and future questions. http://www.flashforservergeeks.com/fsg/ -Cameron - Cameron Childress Sumo Consulting Inc --- land:858.509.3098 cell:678.637.5072 aim:cameroncf email: [EMAIL PROTECTED] -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 2:22 PM To: CF-Talk Subject: SOT Flash Remoting Help I have been working on my first real Flash app. It is a real-time stock portfolio display. Server side is a CFMX program that retrieves real-time quotes from another web site The real-time data is combined with (relatively) static data from an on-site database The server and client exchange data using Flash remoting 1) At the start of each day (or when the client logs on), the clients entire portfolio (static data) is transferred to the client and displayedin a grid (Flash dataGrid) 2) When the Market opens (or when the client logs on), initial real-time data for the client portfolio is sent to the client to populate the grid I have these 2 steps working -- a little slow, but they each only happen once per day per portfolio. 3) The next step is to transmit only the changes to the client, and update the grid, as quickly as tpossible. Here's where I could use some help/ideas. The way I see it, the Flash client will request changes from the server as whenever it can receive them (immediately after receiving the last changes) the server will maintain state and a have a copy of the data on each clientso the CFMX program can determine what has changed since the last changes were sent to the client -- so it can eliminate any unnecessary data to reduce bandwidth. I have implemented similar programs (including a version of this app) using _javascript_ and/or meta tag refresh to trigger the client to make repetitive requests to the server. What is the best way to do this in a Flash client? If anyone has an examples or can point me to a good reference it will be greatly appreciated. TIA Dick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SOT Flash Remoting Help
Thanks Cameron I ordered the hard copy, but have been reading it online at O'Reilly Safari bookshelf. Very well done, but a little out of date (Pre Flash MX 2004 Professional) I am on chapter 4 and haven't found anything yet(that I understand well enough) to satisfy my need. What I need is kinda' like a Ticker -- but it's not! Or, kinda like a Chat -- but it's not! What I want is kinda' like a streaming client but,unlike a Ticker, the stage (grid) never moves-- only the values and colors of the cells will change. Unlike a chat, as soon as I get a packetof changes from the server, I want to request another, before processing this one-- no artificial delays to minimize traffic -- to the contrary, I want the client to request and consume data as often as it can. I currently am using 2 different streamer-fed client apps provided by a 3rd party. One is a Java applet, the other isawindows-only native app. Surprisingly, my own CFMX/HTML combination outperforms both.They look like they are performing faster/better and update cells more often but the data is less current During peak hours, these streamer apps will get behind 5-10 minutes I could rewrite my CFMX/HTML app to use DHTML and/or hidden frames to improve performance and provide a better UI. But Flash remotingseems to offer much better efficiency, UI, etc. Dick On Feb 6, 2004, at 5:02 PM, Cameron Childress wrote: If you don't already have it, go buy Flash for Server Geeks. It will make your task a whole lot easier and should answer most of your present and future questions.o request another http://www.flashforservergeeks.com/fsg/ -Cameron snip [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: SOT Flash Remoting Help
I ordered the hard copy, but have been reading it online at O'Reilly Safari bookshelf. Very well done, but a little out of date (Pre Flash MX 2004 Professional) Are you sure it's the right book? My copy is entitled: Flash MX Professional 2004 for Server Geeks (http://www.amazon.com/exec/obidos/ASIN/0735713820/nateweisscom-20/103-55873 98-9313411) It definitely covers MX '04, etc. Perhaps you have an older edition? Regards, Dave. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: SOT Flash Remoting Help
As Dave pointed out, the only edition I am aware of is specifically written for Flash Professional 2004, but also includes some stuff for non-pro users. You might want to skip ahead to Chapter 8 Connecting to Servers with Flash Remoting.That chapter goes over data binding and lots of advanced Flash remoting concepts.Also relevant to what you are doing (probably) is Chapter 10 Flash and Sessions. -Cameron - Cameron Childress Sumo Consulting Inc --- land:858.509.3098 cell:678.637.5072 aim:cameroncf email: [EMAIL PROTECTED] -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 5:42 PM To: CF-Talk Subject: Re: SOT Flash Remoting Help Thanks Cameron I ordered the hard copy, but have been reading it online at O'Reilly Safari bookshelf. Very well done, but a little out of date (Pre Flash MX 2004 Professional) I am on chapter 4 and haven't found anything yet(that I understand well enough) to satisfy my need. What I need is kinda' like a Ticker -- but it's not! Or, kinda like a Chat -- but it's not! What I want is kinda' like a streaming client but,unlike a Ticker, the stage (grid) never moves-- only the values and colors of the cells will change. Unlike a chat, as soon as I get a packetof changes from the server, I want to request another, before processing this one-- no artificial delays to minimize traffic -- to the contrary, I want the client to request and consume data as often as it can. I currently am using 2 different streamer-fed client apps provided by a 3rd party. One is a Java applet, the other isawindows-only native app. Surprisingly, my own CFMX/HTML combination outperforms both.They look like they are performing faster/better and update cells more often but the data is less current During peak hours, these streamer apps will get behind 5-10 minutes I could rewrite my CFMX/HTML app to use DHTML and/or hidden frames to improve performance and provide a better UI. But Flash remotingseems to offer much better efficiency, UI, etc. Dick On Feb 6, 2004, at 5:02 PM, Cameron Childress wrote: If you don't already have it, go buy Flash for Server Geeks.It will make your task a whole lot easier and should answer most of your present and future questions.o request another http://www.flashforservergeeks.com/fsg/ -Cameron snip [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
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
Yes I am using Flash Remoting in a shared hosting environemnt and have exactly the problem you describe.The unsatisfactory solution has been to put all my cfCFCsin the same directory and only call them from that directory.Otherwise the path gets screwed up since the braindead macromedia service can't establish different roots for CFC in different Applications. I spent quite a bit of time with my hosting provider to find a workaround, but short of all applucations on the server stuffing their CFC under the same root directory we couldn't figure it out.I would love to hear if others have had different luck. Craig Earls On Mon, 05 Jan 2004 20:14:35 -0400, you wrote: Has anyone used flash remoting on a shared hosting environment, as I¹m convinced its a problem with the path to the cfc... What hosting provider? Does it work in your local development scenario? (you do have a development server right?) Heres a snippet that should work for you: /* AS code */ obj = function () { this. (r) { trace(received: + r); } this. (e) { trace(error: + e.details); } } function init () { NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashservices/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfc.sendmail,new obj()); service.sayHello(); } init(); /* in cfc/sendmail.cfc */ cfcomponent cffunction name=sayHello access=remote output=false returntype=string cfset var message = hello cfreturn message /cffunction /cfcomponent [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
How do you reference that directory then? Could you give me more details, sounds like we have a winner for the problem! On 6/1/04 11:46 am, Craig Earls [EMAIL PROTECTED] wrote: Yes I am using Flash Remoting in a shared hosting environemnt and have exactly the problem you describe.The unsatisfactory solution has been to put all my cfCFCsin the same directory and only call them from that directory.Otherwise the path gets screwed up since the braindead macromedia service can't establish different roots for CFC in different Applications. I spent quite a bit of time with my hosting provider to find a workaround, but short of all applucations on the server stuffing their CFC under the same root directory we couldn't figure it out.I would love to hear if others have had different luck. Craig Earls On Mon, 05 Jan 2004 20:14:35 -0400, you wrote: Has anyone used flash remoting on a shared hosting environment, as I¹m convinced its a problem with the path to the cfc... What hosting provider? Does it work in your local development scenario? (you do have a development server right?) Heres a snippet that should work for you: /* AS code */ obj = function () { this. (r) { trace(received: + r); } this. (e) { trace(error: + e.details); } } function init () { NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashser vices/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfc.sendmail,new obj()); service.sayHello(); } init(); /* in cfc/sendmail.cfc */ cfcomponent cffunction name=sayHello access=remote output=false returntype=string cfset var message = hello cfreturn message /cffunction /cfcomponent [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
In my experience its not configuring Flash Remoting, its configuring how the webroots are setup. The paths for flash remoting are based on your webroot. I use a shared environment with Crystal Tech, and remoting works just fine. You need to find out what your webroot is. Then, you can figure out your correct path. HTH, Clint Mauricio Giraldo wrote: Yes I am using Flash Remoting in a shared hosting environemnt Tell me about it. Some sysadmins just dont know how to configure flash remoting. Is it Windows or Linux hosting? Please provide the most information. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
Ok, update: I¹ve found my webroot, created a directory called cfcremoting, and am working off that... It does seem to connect. When I try the code below, I get the following error with the flash debugger: error:coldfusion.compiler.ParseException: Invalid CFML construct found on line 23 at column 17. Theres not even 23 lines in the file!!! On 6/1/04 12:14 am, Mauricio Giraldo [EMAIL PROTECTED] wrote: Has anyone used flash remoting on a shared hosting environment, as I¹m convinced its a problem with the path to the cfc... What hosting provider? Does it work in your local development scenario? (you do have a development server right?) Heres a snippet that should work for you: /* AS code */ obj = function () { this. (r) { trace(received: + r); } this. (e) { trace(error: + e.details); } } function init () { NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashserv ices/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfc.sendmail,new obj()); service.sayHello(); } init(); /* in cfc/sendmail.cfc */ cfcomponent cffunction name=sayHello access=remote output=false returntype=string cfset var message = hello cfreturn message /cffunction /cfcomponent [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
line numbers are not always as they seem in CF...make sure you don't have any included files etc. that could be skewing the real line number Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Ryan Mitchell To: CF-Talk Sent: Tuesday, January 06, 2004 1:24 PM Subject: Re: flash remoting help Ok, update: I¹ve found my webroot, created a directory called cfcremoting, and am working off that... It does seem to connect. When I try the code below, I get the following error with the flash debugger: error:coldfusion.compiler.ParseException: Invalid CFML construct found on line 23 at column 17. Theres not even 23 lines in the file!!! On 6/1/04 12:14 am, Mauricio Giraldo [EMAIL PROTECTED] wrote: Has anyone used flash remoting on a shared hosting environment, as I¹m convinced its a problem with the path to the cfc... What hosting provider? Does it work in your local development scenario? (you do have a development server right?) Heres a snippet that should work for you: /* AS code */ obj = function () { this. (r) { trace(received: + r); } this. (e) { trace(error: + e.details); } } function init () { NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashserv ices/gateway); var conn = NetServices.createGatewayConnection(); var service = conn.getService(cfc.sendmail,new obj()); service.sayHello(); } init(); /* in cfc/sendmail.cfc */ cfcomponent cffunction name=sayHello access=remote output=false returntype=string cfset var message = hello cfreturn message /cffunction /cfcomponent [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]
RE: flash remoting help
You don't seem to have created a responder function in flash. Do you get an error message in Flash? Something along the lines, .no default responder..? If so, have a look at responders for flash remoting. There's a few different ways to do it but you'll no doubt choose your favourite. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 10:34 To: CF-Talk Subject: Re: flash remoting help I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
Where would I find information about these? On 5/1/04 10:44 am, Adrian Lynch [EMAIL PROTECTED] wrote: You don't seem to have created a responder function in flash. Do you get an error message in Flash? Something along the lines, .no default responder..? If so, have a look at responders for flash remoting. There's a few different ways to do it but you'll no doubt choose your favourite. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 10:34 To: CF-Talk Subject: Re: flash remoting help I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: flash remoting help
Give google a bash for a load of info. http://www.google.com/search?hl=en http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=flash+remoting+respo nderbtnG=Google+Search ie=UTF-8oe=UTF-8q=flash+remoting+responderbtnG=Google+Search To get your code below to work try adding this method. function sendMail_Result(result) { trace(result); // When the data is returned from the method call, this is where it is returned to } Let us know if this works. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 05 January 2004 15:59 To: CF-Talk Subject: Re: flash remoting help Where would I find information about these? On 5/1/04 10:44 am, Adrian Lynch [EMAIL PROTECTED] wrote: You don't seem to have created a responder function in flash. Do you get an error message in Flash? Something along the lines, .no default responder..? If so, have a look at responders for flash remoting. There's a few different ways to do it but you'll no doubt choose your favourite. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 10:34 To: CF-Talk Subject: Re: flash remoting help I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
Still not working... I¹ve stripped it down to total simplicity, a 2 frame flash movie, frame one calls the remoting, and then theres a responder function to play the movie should data arrive.. But alas no joy!! Has anyone used flash remoting on a shared hosting environment, as I¹m convinced its a problem with the path to the cfc... I¹ve tried every variation I can think of, but with no luck... The flash movie seems to connect to the server, but just not find any data to read... Its either that or the flash remoting install on the server is screwy... On 5/1/04 6:25 pm, Adrian Lynch [EMAIL PROTECTED] wrote: Give google a bash for a load of info. http://www.google.com/search?hl=en http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=flash+remoting+respo nderbtnG=Google+Search ie=UTF-8oe=UTF-8q=flash+remoting+responderbtnG=Google+Search To get your code below to work try adding this method. function sendMail_Result(result) { trace(result); // When the data is returned from the method call, this is where it is returned to } Let us know if this works. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 05 January 2004 15:59 To: CF-Talk Subject: Re: flash remoting help Where would I find information about these? On 5/1/04 10:44 am, Adrian Lynch [EMAIL PROTECTED] wrote: You don't seem to have created a responder function in flash. Do you get an error message in Flash? Something along the lines, .no default responder..? If so, have a look at responders for flash remoting. There's a few different ways to do it but you'll no doubt choose your favourite. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 10:34 To: CF-Talk Subject: Re: flash remoting help I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
Can you post the code for the two frames? Also, is there a particular reason you are using two frames? mike chambers [EMAIL PROTECTED] On Jan 5, 2004, at 2:31 PM, Ryan Mitchell wrote: Still not working... I¹ve stripped it down to total simplicity, a 2 frame flash movie, frame one calls the remoting, and then theres a responder function to play the movie should data arrive.. But alas no joy!! Has anyone used flash remoting on a shared hosting environment, as I¹m convinced its a problem with the path to the cfc... I¹ve tried every variation I can think of, but with no luck... The flash movie seems to connect to the server, but just not find any data to read... Its either that or the flash remoting install on the server is screwy... On 5/1/04 6:25 pm, Adrian Lynch [EMAIL PROTECTED] wrote: Give google a bash for a load of info. http://www.google.com/search?hl=en http://www.google.com/search?hl=enie=UTF-8oe=UTF -8q=flash+remoting+respo nderbtnG=Google+Search ie=UTF-8oe=UTF-8q=flash+remoting+responderbtnG=Google+Search To get your code below to work try adding this method. function sendMail_Result(result) { trace(result); // When the data is returned from the method call, this is where it is returned to } Let us know if this works. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 05 January 2004 15:59 To: CF-Talk Subject: Re: flash remoting help Where would I find information about these? On 5/1/04 10:44 am, Adrian Lynch [EMAIL PROTECTED] wrote: You don't seem to have created a responder function in flash. Do you get an error message in Flash? Something along the lines, .no default responder..? If so, have a look at responders for flash remoting. There's a few different ways to do it but you'll no doubt choose your favourite. Ade -Original Message- From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: 31 December 2003 10:34 To: CF-Talk Subject: Re: flash remoting help I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/ flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: flash remoting help
I¹m calling the function on a button click... Still havent got it working! On 31/12/03 12:58 am, chris kief [EMAIL PROTECTED] wrote: Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: flash remoting help
Hello I'm playing with flash remoting to a cfc for the first time, and having a few difficulties trying to get it all working... Its on a shared hosting server, so within the flash I'm accessing the server as follows (the coldfusion server runs on port 27000 so I'm assuming that¹s the port for flash remoting!) stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } The file sendmail.cfc im trying to access is found in a folder cfc within the webroot... So is cfc.sendmail the right path to put in? The sendmail.cfc file itself is very simple... cfcomponent cffunction name=sendMail access=remote returntype=boolean !--- validate and insert --- cfmail to=[EMAIL PROTECTED] subject=blah from=[EMAIL PROTECTED] test email /cfmail cfreturn true /cffunction Flash *seems* to connect to the server, but it just doesn¹t seem to send the email!! Any help gratefully received... Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: flash remoting help
What happens if you go to the gateway url in a browser? You should get a blank page. That means the gateway is working. You also, don't need the stop()that will kill your movie's timeline. HTH, Clint Ryan Mitchell wrote: Hello I'm playing with flash remoting to a cfc for the first time, and having a few difficulties trying to get it all working... Its on a shared hosting server, so within the flash I'm accessing the server as follows (the coldfusion server runs on port 27000 so I'm assuming that¹s the port for flash remoting!) stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } The file sendmail.cfc im trying to access is found in a folder cfc within the webroot... So is cfc.sendmail the right path to put in? The sendmail.cfc file itself is very simple... cfcomponent cffunction name=sendMail access=remote returntype=boolean !--- validate and insert --- cfmail to=[EMAIL PROTECTED] subject=blah from=[EMAIL PROTECTED] test email /cfmail cfreturn true /cffunction Flash *seems* to connect to the server, but it just doesn¹t seem to send the email!! Any help gratefully received... Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: flash remoting help
Yeah I do get a blank page... I want the stop there to stop my movie :O) On 30/12/03 2:13 pm, Clint Tredway [EMAIL PROTECTED] wrote: What happens if you go to the gateway url in a browser? You should get a blank page. That means the gateway is working. You also, don't need the stop()that will kill your movie's timeline. HTH, Clint [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: flash remoting help
The stop is what is stopping your remoting call... How are you calling your function? Also, sometimes they way you are setting your gateway, Flash doesn't create the connection properly.. try this: if(inited == null) { inited = true; var conn = NetServices.createGatewayConnection(http://www.lightwillrise.com:27000/flashservices/gateway); var svc = conn.getService(cfc.sendMail, this); } HTH Ryan Mitchell wrote: Yeah I do get a blank page... I want the stop there to stop my movie :O) On 30/12/03 2:13 pm, Clint Tredway [EMAIL PROTECTED] wrote: What happens if you go to the gateway url in a browser? You should get a blank page. That means the gateway is working. You also, don't need the stop()that will kill your movie's timeline. HTH, Clint [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: OT: flash remoting help
Nope, no joy im afraid. Seems to me like theres a problem once it hits the gateway... Like the path is wrong or something, cos the cfc is never being run, or not that I can see anyway! Thanks for your help! On 30/12/03 2:29 pm, Clint Tredway [EMAIL PROTECTED] wrote: The stop is what is stopping your remoting call... How are you calling your function? Also, sometimes they way you are setting your gateway, Flash doesn't create the connection properly.. try this: if(inited == null) { inited = true; var conn = NetServices.createGatewayConnection(http://www.lightwillrise.com:27000/flashs ervices/gateway); var svc = conn.getService(cfc.sendMail, this); } HTH Ryan Mitchell wrote: [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: flash remoting help
Did you get this working? From the looks of your code, you're never calling the function, just declaring it. You need to invoke the function to get it to work: stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } // invoke the function insertIt(); chris From: Ryan Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 3:02 AM To: CF-Talk Subject: OT: flash remoting help Hello I'm playing with flash remoting to a cfc for the first time, and having a few difficulties trying to get it all working... Its on a shared hosting server, so within the flash I'm accessing the server as follows (the coldfusion server runs on port 27000 so I'm assuming that¹s the port for flash remoting!) stop(); // Include the Required NetService class files #include NetServices.as // Connect to the Flash Remoting service // Make the Gateway connection NetServices.setDefaultGatewayUrl(http://www.lightwillrise.com:27000/flashse rvices/gateway); gatewayConnnection = NetServices.createGatewayConnection(); // path relative to webroot svc = gatewayConnnection.getService(cfc.sendmail, this); function insertIt() { svc.sendMail(); } The file sendmail.cfc im trying to access is found in a folder cfc within the webroot... So is cfc.sendmail the right path to put in? The sendmail.cfc file itself is very simple... cfcomponent cffunction name=sendMail access=remote returntype=boolean !--- validate and insert --- cfmail to=[EMAIL PROTECTED] subject=blah from=[EMAIL PROTECTED] test email /cfmail cfreturn true /cffunction Flash *seems* to connect to the server, but it just doesn¹t seem to send the email!! Any help gratefully received... Ryan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: OT: flash remoting help
That is incorrect. stop() only controls the timeline - not the execution of AS. He just wasnt invoking his function after he declared it. chris From: Clint Tredway [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 6:29 AM To: CF-Talk Subject: Re: OT: flash remoting help The stop is what is stopping your remoting call... How are you calling your function? Also, sometimes they way you are setting your gateway, Flash doesn't create the connection properly.. try this: if(inited == null) { inited = true; var conn = NetServices.createGatewayConnection(http://www.lightwillrise.com:27000/flas hservices/gateway); var svc = conn.getService(cfc.sendMail, this); } HTH Ryan Mitchell wrote: Yeah I do get a blank page... I want the stop there to stop my movie :O) On 30/12/03 2:13 pm, Clint Tredway [EMAIL PROTECTED] wrote: What happens if you go to the gateway url in a browser? You should get a blank page. That means the gateway is working. You also, don't need the stop()that will kill your movie's timeline. HTH, Clint [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: OT: flash remoting help
when I put in a stop it stops everything... Clint Tredway www.digital12studios.com Original Message: +AD4-From: +ACI-chris kief+ACI- +ADw-chris+AEA-riseinteractive.com+AD4- +AD4-To: CF-Talk +ADw-cf-talk+AEA-houseoffusion.com+AD4- +AD4-Subject: RE: OT: flash remoting help +AD4-Date: Tue, 30 Dec 2003 17:00:13 -0800 +AD4-That is incorrect. stop() only controls the timeline - not the execution of +AD4-AS. He just wasn+IBk-t invoking his function after he declared it. +AD4- +AD4-chris +AD4- +AD4AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXw- +AD4-From: Clint Tredway +AFs-mailto:clint+AEA-digital12studios.com+AF0- +AD4-Sent: Tuesday, December 30, 2003 6:29 AM +AD4-To: CF-Talk +AD4-Subject: Re: OT: flash remoting help +AD4- +AD4-The stop is what is stopping your remoting call... How are you calling +AD4-your function? +AD4- +AD4-Also, sometimes they way you are setting your gateway, Flash doesn't +AD4-create the connection properly.. +AD4-try this: +AD4-if(inited +AD0APQ- null) +AHs- +AD4AoACgAKA- inited +AD0- true+ADs- +AD4AoACgAKA- var conn +AD0- +AD4-NetServices.createGatewayConnection(+ACI-http://www.lightwillrise.com:27000/flas +AD4-hservices/gateway+ACI-)+ADs- +AD4AoACgAKA- var svc +AD0- conn.getService(+ACI-cfc.sendMail+ACI-, this)+ADsAoACgAKA- +AD4AfQ- +AD4- +AD4-HTH +AD4- +AD4-Ryan Mitchell wrote: +AD4- +AD4APg- Yeah I do get a blank page... +AD4APg- I want the stop there to stop my movie :O) +AD4APg- +AD4APg- On 30/12/03 2:13 pm, +ACI-Clint Tredway+ACI- +ADw-clint+AEA-digital12studios.com+AD4- wrote: +AD4APg- +AD4APg- +AD4- What happens if you go to the gateway url in a browser? You should get a +AD4APg- +AD4- blank page. That means the gateway is working. +AD4APg- +AD4- +AD4APg- +AD4- You also, don't need the stop()that will kill your movie's timeline. +AD4APg- +AD4- +AD4APg- +AD4- HTH, +AD4APg- +AD4- Clint +AD4APg- +AD4AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXw- +AD4- +AD4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfA- +AD4-This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. +AD4-http://www.cfhosting.com +AD4- +AD4-Message: http://www.houseoffusion.com/lists.cfm?link+AD0-i:4:148256 +AD4-Archives: http://www.houseoffusion.com/lists.cfm?link+AD0-t:4 +AD4-Subscription: http://www.houseoffusion.com/lists.cfm?link+AD0-s:4 +AD4-Unsubscribe: http://www.houseoffusion.com/cf+AF8-lists/unsubscribe.cfm?user+AD0-13.7.4 +AD4- +AD4- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: OT: flash remoting help
Really? So the following doesn't trace anything out for you? stop(); trace(still executing code); I believe you mean that any ActionScript on frames past the one where the stop is placed will not execute. That is, of course, because the playhead never gets to that code. But code on the frame where the stop is placed will always execute. chris From: Clint Tredway [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 6:20 PM To: CF-Talk Subject: RE: OT: flash remoting help when I put in a stop it stops everything... Clint Tredway www.digital12studios.com Original Message: +AD4-From: +ACI-chris kief+ACI- +ADw-chris+AEA-riseinteractive.com+AD4- +AD4-To: CF-Talk +ADw-cf-talk+AEA-houseoffusion.com+AD4- +AD4-Subject: RE: OT: flash remoting help +AD4-Date: Tue, 30 Dec 2003 17:00:13 -0800 +AD4-That is incorrect. stop() only controls the timeline - not the execution of +AD4-AS. He just wasn+IBk-t invoking his function after he declared it. +AD4- +AD4-chris +AD4- +AD4AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8 AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXw- +AD4-From: Clint Tredway +AFs-mailto:clint+AEA-digital12studios.com+AF0- +AD4-Sent: Tuesday, December 30, 2003 6:29 AM +AD4-To: CF-Talk +AD4-Subject: Re: OT: flash remoting help +AD4- +AD4-The stop is what is stopping your remoting call... How are you calling +AD4-your function? +AD4- +AD4-Also, sometimes they way you are setting your gateway, Flash doesn't +AD4-create the connection properly.. +AD4-try this: +AD4-if(inited +AD0APQ- null) +AHs- +AD4AoACgAKA- inited +AD0- true+ADs- +AD4AoACgAKA- var conn +AD0- +AD4-NetServices.createGatewayConnection(+ACI-http://www.lightwillrise.com:2 7000/flas +AD4-hservices/gateway+ACI-)+ADs- +AD4AoACgAKA- var svc +AD0- conn.getService(+ACI-cfc.sendMail+ACI-, this)+ADsAoACgAKA- +AD4AfQ- +AD4- +AD4-HTH +AD4- +AD4-Ryan Mitchell wrote: +AD4- +AD4APg- Yeah I do get a blank page... +AD4APg- I want the stop there to stop my movie :O) +AD4APg- +AD4APg- On 30/12/03 2:13 pm, +ACI-Clint Tredway+ACI- +ADw-clint+AEA-digital12studios.com+AD4- wrote: +AD4APg- +AD4APg- +AD4- What happens if you go to the gateway url in a browser? You should get a +AD4APg- +AD4- blank page. That means the gateway is working. +AD4APg- +AD4- +AD4APg- +AD4- You also, don't need the stop()that will kill your movie's timeline. +AD4APg- +AD4- +AD4APg- +AD4- HTH, +AD4APg- +AD4- Clint +AD4APg- +AD4AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8 AXwBfAF8AXwBfAF8AXwBfAF8AXwBfAF8AXw- +AD4- +AD4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4 AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB +AH4AfgB+AH4AfgB+AH4AfgB+AH4AfgB+AH4AfA- +AD4-This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. +AD4-http://www.cfhosting.com +AD4- +AD4-Message: http://www.houseoffusion.com/lists.cfm?link+AD0-i:4:148256 +AD4-Archives: http://www.houseoffusion.com/lists.cfm?link+AD0-t:4 +AD4-Subscription: http://www.houseoffusion.com/lists.cfm?link+AD0-s:4 +AD4-Unsubscribe: http://www.houseoffusion.com/cf+AF8-lists/unsubscribe.cfm?user+AD0-13.7.4 +AD4- +AD4- [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]