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: 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]