Hi All,
I'm having a lot of trouble getting this to work. I have a Flash MX form
with four fields and want to pass it out of Flash to CF (opening a new CF
page) for futher processing. (BTW: This will be posted at an ISP in a shared
environment. I tested to see if remoting works at the ISP, which it does.)
Following the tutorials in Forta's CFMX book doesn't seem to help (pp.678).
I would think the problem is in the "function subscribeButton_Clicked ()"
area. Ideas? Here's the code:
====================================
#include "NetServices.as"
// uncomment this line when you want to use the NetConnect debugger
//#include "NetDebug.as"
// --------------------------------------------------
// Application initialization
// --------------------------------------------------
if (inited == null)
{
// do this code only once
inited = true;
// set the default gateway URL (this is used only in authoring)
//NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gate
way");
NetServices.setDefaultGatewayUrl("http://www.domainname.com:8500/flashservic
es/gateway");
// connect to the gateway
gateway_conn = NetServices.createGatewayConnection();
// get a reference to a service
subscribeService = gateway_conn.getService("subscription_center",
this);
}
// --------------------------------------------------
// Handlers for user interaction events
// --------------------------------------------------
// This gets called when the "subscribeButton" button is clicked
function subscribeButton_Clicked ()
{
// Use the subscribe service function (execute dataerrors.cfm)
subscribeService.dataerrors({firstName:firstname,lastName:lastName,emailAddr
ess:emailAddress,verifyEmail:verifyEmail});
}
====================================
Thanks, Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4