PDA

View Full Version : Cross-domain ASP access?


Richro65
01-09-2007, 06:52 PM
Hi,

I am trying to access an ASP script that is on one website from a flash movie that is on a different website/server but Flash is unable to read the variables from the ASP.

I then uploaded the swf that accesses the ASP script to the same server. It successfully reads the variables from the ASP but when I attempt to include that swf in a swf on the other server (loadMovieNum) it is again unable to read the variables.

I have allowScriptAccess set to 'always' but it doesn't help.

Basically what I am trying to accomplish is reading information from a database on one server and displaying it on a different website. I have ftp access to both servers.

Is there a way to do this or could the server's security possibly be blocking this communication?

Cota
01-09-2007, 07:10 PM
Have tried uploading a cross domain policy to the server with the asp script
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001097.html

Also, check the scope of your loadVariablesNum, it may be going out of scope.

Richro65
01-10-2007, 12:11 AM
Thanks for reply. I created and uploaded an XML file (crossdomain) to the server containing the ASP but the variable load is still unsuccessful.

<?xml version="1.0"?>
<!-- http://www.bananasentertainment.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="www.johnnywadband.com" />
</cross-domain-policy>

Please excuse my inexperience.... how do you determine if something is out of scope? I'm not using loadVariablesNum to read the ASP, but rather LoadVars.

This is the swf that accesses the ASP:

http://www.bananasentertainment.com/johnny_wad_news.swf

As you can see, it's able to read the schedule information (bottom of page) from this ASP script:

http://www.bananasentertainment.com/scheduleWklyWad.asp

But when I try to include that very movie while on another server....

http://www.johnnywadband.com/test.html

It's no longer able to read the information.

Maybe the scope is the problem but how would I know?

Thanks again!