Any method called from the Flash movie must be declared remote. 
Methods that the remote methods call do NOT have to be remote.

Now as for how you're using the methods, I don't think you can do what
you've listed.  Flash, to my knowledge, can't deal with object
references, it can only deal with "normal" data types (primatives,
arrays, structs).  Your model needs to have a layer of encapsulation
so that you can only deal with those data types from flash.  For
example, you might have a getProduct(productID) method in your
remoting facade, which would then do the method chain you listed and
pass the result back.

Also, just to clarify things, you're not building a remoting interface
to a FB4 app, you're building a data model that is used by your FB4
app, and by the remoting facade, right?  Because if you're trying to
wrap an actual FB app in a remoting facade, you're going to have all
kinds of issues down the road.

cheers,
barneyb


On Mon, 24 Jan 2005 17:04:40 -0500, Ken Dunnington
<[EMAIL PROTECTED]> wrote:
> I'm about to start testing/implementing a Flash Remoting interface to
> an application I'm building in Fusebox 4.1 (I figured, why make it
> easy on myself, I should just dive into two new areas at once! :))
> I've built most of my model and am about to start on the gateway
> object that I plan on using as the interface to my application for
> Flash (please excuse my misuse of the term 'gateway' here.)
> 
> In my model, most of my methods are declared "public" but I know for
> Flash you need to declare your methods "remote" so here's where my
> question comes in. My model does a lot of reference passing when it
> comes to objects, stuff like productManager.getDAO() and the like, so
> I can more easily swap out components if needed. If I pass a component
> reference to Flash this way
> (flashInterface.getProductManager().getDAO().fetch(productID) for
> example) will this work, even though all the methods on productDAO()
> are public, and not remote? I really don't want to implement every
> possible method within the Flash interface object, wrapping other
> method calls around remote method declarations. :)
> 
> Any help is greatly appreciated!
> Thanks,
> Ken

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 8 invites.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to