Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-31-2008, 01:40 AM   #1
nmarun
Registered User
 
Join Date: Apr 2005
Posts: 44
Default Crossdomain.xml file

Hi,

My site has a web service and it was working earlier with or without the www part, but it's not working now without the www part. I read a couple of articles which said there have been some changes in the security model of the latest version of flash. Below is my crossdomain.xml file:

<?xml version="1.0" encoding="utf-8" ?>
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-http-request-headers-from domain="*" headers="*" />
</cross-domain-policy

Please let me know what I need to do so that the webservice call is successful for both http://www.arunmahendrakar.com and http://arunmahendrakar.com.

Thanks
Arun
nmarun is offline   Reply With Quote
Old 07-31-2008, 03:44 PM   #2
nmarun
Registered User
 
Join Date: Apr 2005
Posts: 44
Default solved it!!

Hi,

I solved this issue through a 'hack'. Initially, I had hard-coded the web service as 'http://www.mysite.com/WebService.asmx..', but now I'm capturing the domain name on which the flash file is running using a LocalConnection and then I build the path for the web service based on the domain name returned. My code now looks like this:
Code:
var localDomainLC:LocalConneciton = new LocalConnection();
myDomainName = localDomainLC.domain();
webServicePath = "http://" + myDomainName + "/WebService.asmx..'
This way, I don't have to worry, whether the request is coming from 'http://www.mysite.com' or 'http://mysite.com'.

Thanks
Arun

Last edited by nmarun; 07-31-2008 at 03:46 PM. Reason: made http links as text
nmarun is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I make a clip wait before loading? shoodogg1977 ActionScript 1.0 (and below) 4 09-01-2006 01:08 PM
array from external text file loop problems shrinkwrapped ActionScript 2.0 4 07-17-2006 10:59 PM
Help setting up a crossdomain.xml file gumpovooah ActionScript 2.0 0 07-15-2006 03:30 PM
how to open pdf file from projector file in acrobat reader sohailfx ActionScript 2.0 2 06-24-2005 05:54 PM


All times are GMT. The time now is 12:45 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.