Hi there,
I have this interesting problem here. I am trying to load my flash file and ASP file on 2 different domains. (sub-domain to be exact). But the link (geturl) does not seems to work at all…
Ok, here is the scenario:
I have 2 servers.
- www.abc.com (Web server for hosting my web files + SWF files)
-
app.abc.com (App server for hosting scripts files + ASP files)
In my SWF file, i have codes like
geturl("http://app.abc.com/abc.asp", "_self")
In my App Server, I have the default.asp page which loads the Flash file located in the Web Server.
<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0
height=xxx width=xxx classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>
<PARAM NAME="movie" VALUE="http://www.abc.com/flash.swf">
<PARAM NAME="quality" VALUE="high">
<embed src="http://www.abc.com/flash.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="xxx" height="xxx">
</embed>
</OBJECT>
So when I tested accessing my flash file directly from the web server (http://www.abc.com/flash.swf), I am able to click on the button to go to http://app.abc.com/abc.asp.
But when I access the flash file from the ASP file by going to (http://app.abc.com/default.asp), i am able to see the flash.swf being loaded. But clicking on the button does nothing.
I then came across the crossdomain.xml thingy.
Added this file to my app.abc.com root directory.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
But still to no avail…
But the most wierd thing is… about 1% of the client IE can work! (actually only 2 PCs. out of all the other PCs that we tested with…):wt:
Anyone have any clue on what could be the problem?