Antony

Mark's correct, for Flash Remoting to work CFCs must appear to exist below the web root to the server, either physically or virtually.

Mark is also right on the money (hmm, second time today I've used that) that you could use a forward facing CFC to handle the different calls.

Sean Corfield wrote an article for DevNet that discusses that:

http://www.macromedia.com/devnet/mx/flashremoting/articles/facades.html

He'll be here in Sydney next month at MXDU, might be an interesting topic to corner him on...

Andrew

Mark M wrote:

Antony -

You would probably need to double check this - but I'm (kinda?) certain that you can't access components that are stored off the web root.

That being said - it's fairly common practice to have a CFC that handles all your Flash Remoting calls, for greater seperation between layers.

This CFC will grab the relevent data from the CFCs that is required and pass it off to the Remoting request.

On a total theory bent (ya would have to test this out) have a RemotingCFCManager.cfc that's sole job is to return back instances of CFCs that are stored off the web root to the remoting request.

Not sure how that would turn out tho. Been a bit since i've played with remoting.

HTH

Mark

------------------------------------------------------------------
[EMAIL PROTECTED]
ICQ: 3094740
Safe From Bees
[ www.safefrombees.com ]


Quoting Antony Sideropoulos <[EMAIL PROTECTED]>:



Hello

<preamble>

I have developed a CFC that I am storing outside the webroot:

d:\website\webroot d:\website\customtags <-- CFCs live here

In CFMX Administrator I have set up a custom tag path pointing to this
directory and using CFM templates I can successfully call functions
within CFCs that are stored in this directory.

</preamble>

<question>

When I try to call the same functions in the same CFCs via Flash
Remoting, I get the following error:
No service named flaggedfiles is known to Flash Remoting MX.

Can Flash Remoting see/use CFCs outside the webroot in the same manner
as CFM templates can?  If not, does anyone have any bright ideas for me?
(I am using CFMX6.1, Flash Remoting MX and IIS6)

</question>

Many thanks

Antony

---------------------------------------------------------------------
Antony Sideropoulos
IT Solutions Developer
Maddocks

t 9288 0662
f 9288 0666
m 0414 840 820
e [EMAIL PROTECTED]
---------------------------------------------------------------------


----------------------------------------------------------------------
Maddocks
Melbourne - Tel: (61 3) 9288 0555 Fax: (61 3) 9288 0666 Sydney - Tel: (61 2) 8223 4100 Fax: (61 2) 9221 0872
Web: http://www.maddocks.com.au ----------------------------------------------------------------------
The information in this electronic mail is privileged
and confidential, intended only for use of the individual
or entity named. If you are not the intended recipient,
any dissemination, copying or use of the information is
strictly prohibited. If you have received this transmission
in error please delete it immediately from your system
and inform us by email on [EMAIL PROTECTED]
----------------------------------------------------------------------



--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]



MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004





-- Andrew Muller Senior Macromedia Certified Instructor - ColdFusion, Flash Certified Advanced Macromedia ColdFusion Developer - CF5, CFMX Certified Macromedia Flash Developer - FL5, FMX

Daemon Internet Consultants
Macromedia Premier Solutions Partner

Macromedia Certified Training
http://www.daemon.com.au/go/training

T: 61 2 9380 4162
F: 61 2 9380 4204
17 Roslyn Gardens
Elizabeth Bay NSW 2011 AUSTRALIA

Daemon: Serious Web Development

FarCry, the open source CMS for ColdFusion MX
http://farcry.daemon.com.au/


--- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to