When you say "same test folder" what do you mean?  The CFC should be in the
C:\CFusionMX\wwwroot\test directory

here's what I would use:
cfServer =
NetServices.createGatewayConnection("http://localhost:8500/flashservices/gat
eway");
// set categoryService  to the CFC
categoryService = cfServer.getService("test.category", this);

HTH

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
----- Original Message -----
From: "Jack Ince" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 4:10 PM
Subject: CFC Flash connection


> I can not get flash to find the connection.
> Been messing with this for two days and can not get the hang of it,
> I hope Hal Helm's book will clear it up, but in the meantime --- HELP
> ----------------------------------------------------------
> Flash action:
>
> if (inited == undefined) {
> inited = true;
> var gwURL = "http://localhost:8500/flashservices/gateway";;
> NetServices.setDefaultGatewayURL(gwURL);
> gw = NetServices.createGatewayConnection();
> categoryService = gw.getService("test.category", this);
> categoryService.GetCategories();
> }
>  ---------------------------------------------------------
> Cfc in the same Test folder:
>
> <!--- category.cfc --->
> <CFCOMPONENT>
> <CFFUNCTION NAME="GetCategories"
> ACCESS="remote"
> RETURNTYPE="query"
> OUTPUT="false">
>
> <!--- Get departments --->
> <CFQUERY NAME="Categories" username="sa" password=" "
> DATASOURCE="Exec_exec">
> SELECT *
> FROM Maincat
> ORDER BY maincat
> </CFQUERY>
> <CFRETURN Categories>
> </CFFUNCTION>
>
> </CFCOMPONENT>
>
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to