Sorry if I confused you with my previous post. It was meant only as an illustration to show how Flash regards urls as different and not to talk about localhost specifically.
I was looking at the code below that you had posted, has this worked for you? The port for the gateway on ColdFusion is usually 8500 and not 8100 which was the port for some of the earlier betas.
You might also like to have a look at a post that I made on our blog about making install files for Flash Remoting deployments. This is a method where you make use of CFMX to dynamically determine the address for the getService() method.
http://blog.daemon.com.au/archives/000113.html#000113
I don't know if it'll help you at this stage but it might be of future use.
Andrew
Craig Riley wrote:
Mark, this is all my gateway stuff, works with one of the urls but not the
one I want it to work with! I can't see what I need to change? The vote
component is in exactly the same place so surely
regencyhouse.components.vote should still work? Question though, I am using
the dot notation to point to its location is this the best/only method or
could I use absolute url eg
_http://regencyhouse.peoplenews.com/components/vote.cfc_ ?
if (inited == null)
{
// do this code only once
inited = true;
// set the default gateway URL (this is used only in authoring)
NetServices.setDefaultGatewayUrl("_http://localhost:8100/flashservices/gateway_");
// connect to the gateway
var gw = NetServices.createGatewayConnection();
// get a reference to a service
var server = gw.getService("regencyhouse.components.vote", new Result());
server.GetQuestion();
}
aaghhhh!
At 12:11 PM 2/17/2003 +1100, you wrote:
Craig -
what have you set your gateway to?
I'm assuming you set it within the http://regencyhouse.peoplenews.com <http://regencyhouse.peoplenews.com/>, and not
the http://miramar.ac3.com.au <http://miramar.ac3.com.au/> domain?
Mark
> Craig Riley <[EMAIL PROTECTED]> wrote:
>
> The first URL is just where the site sits on our hosting box, all
> sites
> will then have DNS set up to point to the relevant page eg
> www.somedomain.com <http://www.somedomain.com/> will point to
> http://miramar.ac3.com.au/somedomain.com/
> SURELY flash remoting must still work when DNS for the site url is
> set up,
> otherwise it would be useless?! The only url I wish to work is
> http://regencyhouse.peoplenews.com <http://regencyhouse.peoplenews.com/> but I'm not sure what I need to
> change
> to get it working?
> Curiously I get the following error when I try to browse to the
> component
> http://miramar.ac3.com.au/regencyhouse/components/vote.cfc (after I
> logon
> to the component administrator?)
>
> "Component not found
> The component definition file for component
> 'regencyhouse.components.vote'
> cannot be found on this server."
>
>
>
> Starting to panic! :-[]
>
>
>
> At 11:54 AM 2/17/2003 +1100, you wrote:
> >Craig
> >
> >Flash Remoting has security built into it that will not allow you to
> call
> >a gateway from a url that differs to the one that the Flash movie is
> being
> >hosted on.
> >
> >Andrew
> >
> >Craig Riley wrote:
> >>Hi All, set up a site on our live server that uses a flash remoting
> vote:
> >>http://miramar.ac3.com.au/regencyhouse/ (feel free to play :-)
> >>This works fine, but when I test the same site under the url that
> points
> >>to exactly the same place I get the following error:
> >>http://regencyhouse.peoplenews.com <http://regencyhouse.peoplenews.com/>
> >>Sure its a simple fix but, err.. I haven't discovered it yet! :-(
> >>
> >>Love some help, cheers Craig
> >>
> >>
> >
> >--
> >Andrew Muller
> >Senior Macromedia Certified Instructor - ColdFusion, Flash
> >Certified Advanced Macromedia ColdFusion Developer
> >Certified Macromedia Flash Developer
> >
> >Daemon Internet Consultants
> >[EMAIL PROTECTED]
> >http://www.daemon.com.au/training
> >T:61 2 9380 4162
> >F:61 2 9380 4204
> >17 Roslyn Gardens
> >Elizabeth Bay NSW 2011 AUSTRALIA
> >
> >Daemon: Serious Web Development
> >
> >
> >MX DownUnder: The First AsiaPac Macromedia Devcon!
> >http://www.mxdu.com/
> >
> >
> >---
> >You are currently subscribed to cfaussie as:
> [EMAIL PROTECTED]
> >To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> >
> >MX Downunder AsiaPac DevCon - http://mxdu.com/
>
>
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
>
> MX Downunder AsiaPac DevCon - http://mxdu.com/
--
ICQ: 3094740
[EMAIL PROTECTED]
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
-- Andrew Muller Senior Macromedia Certified Instructor - ColdFusion, Flash Certified Advanced Macromedia ColdFusion Developer Certified Macromedia Flash Developer
Daemon Internet Consultants [EMAIL PROTECTED] http://www.daemon.com.au/training T:61 2 9380 4162 F:61 2 9380 4204 17 Roslyn Gardens Elizabeth Bay NSW 2011 AUSTRALIA Daemon: Serious Web Development MX DownUnder: The First AsiaPac Macromedia Devcon! http://www.mxdu.com/ --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
