Did you test every thing from the CFC side of things to?
Making sure the CFC is getting the correct arguments?
I would put some code like this at the beginning of your function in the CFC...
{all cfarguments and vared variables here....}
<cfset var myArgs = "">
<cfsavecontent variable="myArgs">
<cfdump var="arguments">
</cfsavecontent>
<cffile action="write" file="c:\flexTest_#getTickCount#.html" output="#myArgs#">
{rest of function here}
This will let you know if the function is being called the same way
both times....
Your code looks OK at first look BTW.
I am presuming the CFFunction is returning a Query?
A way to see what you get back is....
in the "doResultGetTechEvents" function....
for(var i in result){
trace("i = " + i);
for(var o in result[i]){
trace("o = " + o + " :: result[i][o] = " + result[i][o]);
}
}
About now I can hear the question I asked when I first started with
flex (about 4 months ago...) "How do you see the trace statement
results?"
You can down load a version of flashplayer that writes the traces to a
file called "flashlog.txt"
The MM site has instructions on this...
you can then see what the Flex app is getting back...
HTH
On 9/29/05, Muzak <[EMAIL PROTECTED]> wrote:
> A wild guess: try adding a "/" at the end of the gateway url.
>
> endpoint="http://cfxtest.research.unc.edu/flashservices/gateway/"
>
> I've seen USERID and alike being added to the gateway url when making
> remote calls.
> In that case, without the ending '/', the gateway url gets messed up.
>
> Might not be the case here, but it's the first thing I'd check ;-)
>
> regards,
> Muzak
>
> ----- Original Message -----
> From: "Greg Johnson" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, September 28, 2005 2:28 PM
> Subject: Re: [flexcoders] Calls to CFCs
>
>
> > Here is where the connection is setup in the main file:
> >
> ------------------------------------------------------------------------
> >
> > <mx:RemoteObject id="mr_cfc"
> >
> endpoint="http://cfxtest.research.unc.edu/flashservices/gateway"
> > source="mr.mr_cfc"
> > fault="mx.controls.Alert.show(event.fault.faultstring)"
> > showBusyCursor="true" >
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
> ________________________________
> YAHOO! GROUPS LINKS
>
>
> Visit your group "flexcoders" on the web.
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
> ________________________________
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/