# Unable to link flash to asp pages from other domains

**URL:** <https://forum.kirupa.com/t/unable-to-link-flash-to-asp-pages-from-other-domains/236122>\
**Category:** flash\
**Created:** [August 17, 2007, 12:50pm UTC](https://forum.kirupa.com/t/unable-to-link-flash-to-asp-pages-from-other-domains/236122 "2007-08-17T12:50:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfkse7en](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@jfkse7en](https://forum.kirupa.com/u/jfkse7en)\
**Post date:** [August 17, 2007, 12:50pm UTC](https://forum.kirupa.com/t/unable-to-link-flash-to-asp-pages-from-other-domains/236122/1 "2007-08-17T12:50:06Z")

</div>

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.

1. [www.abc.com](http://www.abc.com) (Web server for hosting my web files + SWF files)
2. [app.abc.com](http://app.abc.com) (App server for hosting scripts files + ASP files)  
In my SWF file, i have codes like

```auto
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.

```auto

<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](http://www.abc.com/flash.swf)), I am able to click on the button to go to [http://app.abc.com/abc.asp](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](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](http://app.abc.com) root directory.

```auto

<?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?
