try this:
subscribeButton.onRelease = function(){
subscribeButton_Clicked();
}
----- Original Message -----
From: "Mark Leder" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, June 26, 2003 8:56 AM
Subject: RE: One Way Data pass from Flash to CF
> An instance of a button I created, set to "track as button". The instance
> name is "subscribeButton"
>
> Thanks, Mark
>
> -----Original Message-----
> From: Clint [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 9:48 AM
> To: CF-Talk
> Subject: Re: One Way Data pass from Flash to CF
>
>
> What are you using for your button?
>
> Clint
>
> ----- Original Message -----
> From: "Mark Leder" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, June 26, 2003 8:31 AM
> Subject: RE: One Way Data pass from Flash to CF
>
>
> > Clint, great idea on creating the object! I'm still having trouble
> getting
> > the Flash form to fire when I click the subscribe button.
> >
> > Here's the "Subscribe" button AS:
> > ==============
> > on (keyPress "<Enter>", release) {
> > subscribeButton_Clicked
> > }
> > ==============
> >
> > Here's the reworked 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.mydomain.com:8500/flashservices
> > /gateway");
> >
> > // connect to the gateway
> > gateway_conn = NetServices.createGatewayConnection();
> >
> > // get a reference to a service
> > searchService = gateway_conn.getService("search", this);
> > subscribeService = gateway_conn.getService("subscription_center",
> > this);
> > }
> >
> > // --------------------------------------------------
> > // Handlers for user interaction events
> > // --------------------------------------------------
> >
> > // This gets called when the "subscribeButton" button is clicked
> >
> > function subscribeButton_Clicked ()
> > {
> > 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);
> > }
> > =======================
> >
> > Thanks, Mark
> >
> > -----Original Message-----
> > From: Clint [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 26, 2003 8:50 AM
> > To: CF-Talk
> > Subject: Re: One Way Data pass from Flash to CF
> >
> >
> > 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
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