Come on - this is a hello world example on the timeline. I don't think we need to strictly type it :)
I'd rather see him get the example working first, then we can deal with classes and best practices. I could have sent him a whole bunch of strictly typed AS2 classes that abstract the remoting calls, handle client-side data caching, etc - all of which I consider best practices - but that would be overkill for a simple example don't you think? chris On 4/14/05 2:45 PM, "Kevin Aebig" <[EMAIL PROTECTED]> wrote: > Not to insult, but simply taking out the strict typing doesn't constitute a > fix. Its very bad practice to not use data typing in AS2. Also, I believe > you'd find it alot easier to do remoting with View classes instead of the > old linear way... > > Cheers, > > Kevin > > ---------- > http://www.keslabs.com > > Coldfusion Remote Dashboard :: > http://www.keslabs.com/crd > > -----Original Message----- > From: Chris Kief | Mindflood [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 14, 2005 3:18 PM > To: CF-Talk > Subject: Re: CF 7 and Flash Remoting > > > 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 >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202904 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54