My bad on those. To get rid of the errors, change the 2 methods to this: onResult = function(event) { trace(event.result); }
onFault = function(event) { trace("FAULT CODE: " + event.fault.faultcode); trace("FAULT STRING: " + event.fault.faultstring); trace("DESCRIPTION: " + event.fault.description); trace("TYPE: " + event.fault.type); trace("DETAIL: " + event.fault.detail); } As for the gateway, what URL do you preview your CF pages at? chris On 4/14/05 1:58 PM, "Bryan Stevenson" <[EMAIL PROTECTED]> wrote: > Thanks Chris....here's the error: > > **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 13: The class > 'ResultEvent' could not be loaded. > onResult = function(event:ResultEvent) > > **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 18: The class > 'FaultEvent' could not be loaded. > onFault = function(event:FaultEvent) > > I'm just not sure what my gateway URL should be > > What I do know: > 1) CFMX 7 on JRun > 2) running this on localhost > 3) CFIDE etc. is in D:\web > 4) Jrun4 is in D:\Jrun4 > > So my webroot is in D:\web > > Any ideas? > > Bryan Stevenson B.Comm. > VP & Director of E-Commerce Development > Electric Edge Systems Group Inc. > phone: 250.480.0642 > fax: 250.480.1264 > cell: 250.920.8830 > e-mail: [EMAIL PROTECTED] > web: www.electricedgesystems.com > ----- Original Message ----- > From: "Chris Kief | Mindflood" <[EMAIL PROTECTED]> > To: "CF-Talk" <cf-talk@houseoffusion.com> > Sent: Thursday, April 14, 2005 1:40 PM > Subject: Re: CF 7 and Flash Remoting > > >> Simple hello world example. Create a new fla, stick this on frame 1: >> >> import mx.remoting.*; >> import mx.remoting.debug.*; >> import mx.rpc.*; >> import mx.services.*; >> >> responder = new RelayResponder(this, "onResult", "onFault"); >> service = new Service("http://127.0.0.1:8100/flashservices/gateway/", >> null, >> "helloWorld", null, responder); >> service.sayHello(); >> >> onResult = function(event:ResultEvent) >> { >> trace(event.result); >> } >> >> onFault = function(event:FaultEvent) >> { >> trace("FAULT CODE: " + fault.fault.faultcode); >> trace("FAULT STRING: " + fault.fault.faultstring); >> trace("DESCRIPTION: " + fault.fault.description); >> trace("TYPE: " + fault.fault.type); >> trace("DETAIL: " + fault.fault.detail); >> } >> >> Make sure to change the gateway URL to your setup. Here's the CFC: >> >> <cfcomponent> >> <cffunction name="sayHello" access="remote" returntype="string"> >> <cfreturn "hello"> >> </cffunction> >> </cfcomponent> >> >> chris >> >> >> + Chris Kief >> Mindflood, Inc. >> 714.557.2488 x113 >> >> www.mindflood.com >> >> >> >> On 4/14/05 1:35 PM, "Bryan Stevenson" <[EMAIL PROTECTED]> >> wrote: >> >>> That would be great Chris....damn MM should update their sample apps...or >>> at >>> least warn ya!! ;-) >>> >>> Bryan Stevenson B.Comm. >>> VP & Director of E-Commerce Development >>> Electric Edge Systems Group Inc. >>> phone: 250.480.0642 >>> fax: 250.480.1264 >>> cell: 250.920.8830 >>> e-mail: [EMAIL PROTECTED] >>> web: www.electricedgesystems.com >>> ----- Original Message ----- >>> From: "Chris Kief | Mindflood" <[EMAIL PROTECTED]> >>> To: "CF-Talk" <cf-talk@houseoffusion.com> >>> Sent: Thursday, April 14, 2005 1:25 PM >>> Subject: Re: CF 7 and Flash Remoting >>> >>> >>>> Brian, >>>> >>>> Since you're using the AS2 classes, you no longer #include NetServices. >>>> There is a whole new approach. >>>> >>>> >>>> I'll send a simple example in a minute... >>>> >>>> chris >>>> >>>> >>>> + Chris Kief >>>> Mindflood, Inc. >>>> 714.557.2488 x113 >>>> >>>> www.mindflood.com >>>> >>>> >>>> >>>> On 4/14/05 1:18 PM, "Bryan Stevenson" <[EMAIL PROTECTED]> >>>> wrote: >>>> >>>>> NetServices.as: File not found. is the error >>>>> >>>>> var server = >>>>> NetServices.createGatewayConnection("http://127.0.0.1/flashservices/gatewa >>>>> y" >>>>> ); >>>>> Is probably the line that needs to be fixed up?? >>>>> >>>>> I haven't touched remoting in over a year....I know this is where I had >>>>> trouble before. >>>>> >>>>> I've got Flash MX 2004 Pro installed with ActionScript 2.0 Flash >>>>> Remoting >>>>> Components and the UI component set 2. >>>>> >>>>> I'm trying to fire up the Noteboard tutorial from MMs site. >>>>> >>>>> Any thoughts? >>>>> >>>>> Cheers >>>>> >>>>> Bryan Stevenson B.Comm. >>>>> VP & Director of E-Commerce Development >>>>> Electric Edge Systems Group Inc. >>>>> phone: 250.480.0642 >>>>> fax: 250.480.1264 >>>>> cell: 250.920.8830 >>>>> e-mail: [EMAIL PROTECTED] >>>>> web: www.electricedgesystems.com >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202881 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54