Jason,
Are you sure you have these two lines in your actionscript code?
#include "NetServices.as"
#include "NetDebug.as"

Hilary

--

"Jason Bayly" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
> Ok i connect to the server....
>
> if (inited == null) {
>     inited = true;
>       if (_root.host != VOID) {
>         host = _root.host;
>      } else {
>          host = "10.10.1.5";
>      }
>      // establish the gateway parameters
>      gateway = "http://"; + host + "/flashservices/gateway/";
>      NetServices.setDefaultGatewayUrl(gateway)
>      conn = NetServices.createGatewayConnection();
>      srv = conn.getService("Greatgigs.sendemailCFC", this);
> }
>
> Call the CFC with....
>
> var Vtransport = transport.getValue();
> var Vattend = Attend.getValue();
> srv.sendtheemail({guestname:guestv, partnername:partnerv, diet:dietv,
> attendance:Vattend, transport:Vtransport});
>
> Thats the guts of it....
>
> i make the call to the cfc method, and nada nothing comes back.... Man
these
> things can be hard to debug..
>
> hth
> jason
>
>
> "Hilary Bridel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> >
> > I wouldn't have thought it would be the CF side of things, but how you
are
> > calling it from Flash, so probably need to look at that side of things
> also.
> >
> > On the CFC side, the return type will not always be numerical if the
> cfcatch
> > returns a value from cfcatch.detail. It would probably throw up a cf
error
> > in that case.
> >
> > How are you setting up the remoting and calling the cfc method from
> Flash??
> >
> > Hilary
> >
> > --
> >
> > "Jason Bayly" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > >
> > > Hi Hilary
> > >
> > > I have gotten another CFC to work previously which contained 6 or so
> > > methods. Im still alittle green with all this... :-s
> > >
> > > my cfc code below... I ended up doing it with HTML etc, had a
lunchtime
> > > deadline.. tho im still keen to work out whats up with it...
> > >
> > > Thanks again..
> > > Jason
> > >
> > > <cfcomponent hint="A general CFC to enable emailing from flash."
> > > displayname="sendemail">
> > >     <cffunction name="sendtheemail" access="remote" hint="Sends an
email
> > > from flash" returntype="numeric" displayname="sendtheemail">
> > >          <cfargument name="guestname" required="yes" default=""
> > > type="string">
> > >          <cfargument name="partnername" required="yes" default="NA"
> > > type="string">
> > >          <cfargument name="transport" required="yes" default="No"
> > > type="string">
> > >          <cfargument name="attendance" required="yes" default=""
> > > type="string">
> > >          <cfargument name="diet" required="yes" default="NA"
> > type="string">
> > >
> > >
> > >  <cftry>
> > >   <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]"
> > > subject="Boral Platinum Club Celebrations Event RSVP 2003
Notification">
> > >   Attending: #arguments.attendance#
> > >   Guest Name: #arguments.guestname#
> > >   Partner Name: #arguments.partnername#
> > >   Transport Required: #arguments.transport#
> > >   Special Dietary Requirements: #arguments.diet#
> > >
> > >   Posted: #LSDateFormat(Now(), "dd/mm/yy")# ~ #LSTimeFormat(Now(),
> > > "hh:mmtt")#
> > >   </cfmail>
> > >
> > >   <cfset Vcomplete = 1>
> > >   <cfreturn Vcomplete>
> > >   <cfcatch type="any">
> > >        <cfset Vcomplete = #cfcatch.Detail#>
> > >        <cfreturn Vcomplete>
> > >   </cfcatch>
> > >  </cftry>
> > >  </cffunction>
> > >
> > > </cfcomponent>
> > >
> >
> >
> >
> >
> >
>
>
>
>



---
You are currently subscribed to fugli as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to