Here is what I do:
function subscribe(){
var send2cf = new Object();
send2cf.firstname = firstName_txt.text;
send2cf.lastname = lastName_txt.text;
send2cf.emailAddr = emailAddr_txt.text;
send2cf.verifyEmail = verifyEmail_txt.text;
subscribeService.dataerrors(send2cf);
}
then in CF you just reference the values as #flash.firstName# and so on..
HTH
CLint
----- Original Message -----
From: "Mark Leder" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, June 26, 2003 7:28 AM
Subject: SOT: One Way Data pass from Flash to CF
> 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
Get the mailserver that powers this list at
http://www.coolfusion.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4