You can get the host name from actionscript itself.

var host:String = mx.remoting.NetServices.getHostUrl();
                // create a connection to the flash remoting gateway
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection(host +
"/flashservices/gateway");

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom
Chiverton
Sent: Wednesday, February 21, 2007 3:43 AM
To: [email protected]
Subject: Re: [CFCDEV] Flashremoting and cfcs

On Tuesday 20 Feb 2007, Corey LeGaux wrote:
>         var connection:mx.remoting.Connection =
>
mx.remoting.NetServices.createGatewayConnection("http://#cgi.HTTP_HOST#/
fla
>s hservices/gateway/");

If that's exactly what you have, it won't work, because AS won't insert
the 
value inside the #'s like CF does.

-- 
Tom Chiverton
Helping to autoschediastically establish principle-centered products

****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office. Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP. Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
8008.

For more information about Halliwells LLP visit www.halliwells.com.



You are subscribed to cfcdev. To unsubscribe, please follow the
instructions at http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]
**************************************************************************** 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 
****************************************************************************


You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

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

Reply via email to