Groups | Blog | Home
all groups > coldfusion flash integration > may 2005 >

coldfusion flash integration : Flash remoting, getService() problem with dotted directories


osr
5/24/2005 12:00:00 AM
Hi all,
I have a problem invoking a CFC function on a server. When invoking a CFC file
from flash (or not) you refer to the file with dots (.) instead of slashes (
/), which gets me to my problem. My CFC file (cfcfile.cfc) is located in a
directory on the server which contains dots ie "something.co.uk" is the name of
the directory in which there is another directory CFC for example. However I
tried, it seems there's no way to reach the cfc file. I'll give you two
examples to calarify. Localy I can ivoke it if it's in a directory with no dots
like so: this.getService("mysite.CFC.cfcfile", new Result()); but if I change
my directory name from mysite to mysite.co.uk (which is what I have to deal
with at my hosting provider) there is not way to reach it... tried all the
variations uk.co.mysite, 'mysite.co.uk'.CFC.cfcfile

Please help, maybe using a solution that tells cf/flash to replace dots with
something

Thank you,
Ori
Kiriran
5/25/2005 12:00:00 AM
hi
i doesnt matter if your site is .co.uk
if your component is in yoursite.co.uk/folder/subfolder/component.cfc simply
refer this way.
myService = new Service("http://www.yoursite.co.uk/flashservices/gateway",
null, "folder.subfolder.component", null, null);
hth

osr
5/25/2005 12:00:00 AM
Thank you!!!!!!! This has solved my problem

Originally posted by: Kiriran
hi
i doesnt matter if your site is .co.uk
if your component is in yoursite.co.uk/folder/subfolder/component.cfc simply
refer this way.
myService = new Service("http://www.yoursite.co.uk/flashservices/gateway",
null, "folder.subfolder.component", null, null);
hth



AddThis Social Bookmark Button