-
Flash remoting / gateway
Hi,
Is it possible to set the flashservices/gateway based on what a user types in the url when they visit a site? For example if they type:
www.xyz.com
then for the gateway to work I need to use:
var myService:Service = new Service("http://www.xyz.com/flashservices/gateway", null,"cf.cfquery",null,null);
but if they type xyz.com (without the www.)
then for the gateway to work I need to use:
var myService:Service = new Service("http://xyz.com/flashservices/gateway", null,"cf.cfquery",null,null);
If anyone has any ideas as to a solution it would be much appreciated.
Thanks
Robin.
-
Hi,
have you tried /flashservices/gateway
Musicman
-
Registered User
Hi,
You can also use a cross domain policy file.
-
In case anyone else has this issue, I ended up using GetPageContext().GetRequest() in a coldfusion page to grab the url typed in and pass that into flash as a variable which I then used to set the gateway.
Thanks for the tip re. cross domain policy... I'll look into it.
Cheers
Robin.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|