Home| faqs| resources| exchange| about
Previous Posts
Log In
Username:

Password:
 
Forgot your password?
Register now >>
Sponsored by
Tracking Tools

On the bookshelf... Bookshelf unavailable

Powered with CFMX

Wednesday, October 13, 2004

FlashRemoting.cfc sneaks into v1.0.10

Update (10/13/2004 11:00am) - Including this component was a mistake. See this post.

I was doing a diff of Mach-II 1.0.10 against 1.0.9 and I noticed a new component, FlashRemoting.cfc. Sean mentioned such a component was under consideration but not much more was said about it after that. It wasn't even mentioned in the release notes.

Has anyone tried using this component yet?

Here's the comments from the file header:


<!---
$Id: FlashRemoting.cfc,v 1.4 2003/11/18 01:48:07 mbohl Exp $
Copyright (c) 2003 Macromedia, Inc.

Description:
I am a base class component that provides a way to call a Mach II from Flash.
Usage:
Extend me as index.cfc in your own application.
Override init() if necessary to set MACHII_* variables to something other than the defaults.
Remember to call super.init() if you override it!
The Flash movie then gets a service connection to {appname}.index and calls the
handleRequest() method using one of the following methods:
mySvc.handleRequest({event:"foo",arg1:"bar",arg2:"abc"});
mySvc.handleRequest(responder,{event:"foo",arg1:"bar",arg2:"abc"});
The first method assumes a default responder on the service connection. The second
method passes a specific responder for the call (and is the recommended approach, using
a separate responder for each event).
The actual name of the event parameter should be whatever the backend is expecting,
i.e., whatever the tag for eventParameter defines.
If the event parameter is omitted, the defaultEvent is used.
Notes:
This currently duplicates almost all of mach-ii.cfm which is not ideal.
Unfortunately, the current use of scopes in mach-ii.cfm makes it hard to split it
into reusable include files that could be included here as well. Something for a
future version!
--->




(btw, I've been using a great utility for doing file/directory comparisons. It's called Beyond Compare. I give it 2 thumbs up.)

1 Comments:

Anonymous said...

That's a mistake. FlashRemoting.cfc should not be in the release. It does not work properly and no one should attempt to use it.

I will get Ben to remove it.

I am working on a way to expose Mach II as a CFC for use with web services, Flash Remoting and Blackstone's event gateways. It will be part of the next major release of Mach II.

10:21 AM  

Post a Comment

<< Home