A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash remoting / gateway

  1. #1
    Member
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    57

    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.

  2. #2
    Registered User
    Join Date
    Feb 2001
    Posts
    13,041
    Hi,

    have you tried /flashservices/gateway

    Musicman

  3. #3
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    Hi,

    You can also use a cross domain policy file.

  4. #4
    Member
    Join Date
    Jun 2004
    Location
    London, UK
    Posts
    57
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center