# Link to .swf on remote server?

**URL:** https://forum.kirupa.com/t/link-to-swf-on-remote-server/281499
**Category:** flash
**Created:** [February 10, 2009, 12:36am UTC](https://forum.kirupa.com/t/link-to-swf-on-remote-server/281499 "2009-02-10T00:36:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mrwizzer](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mrwizzer](https://forum.kirupa.com/u/mrwizzer)
#### Post date: [February 10, 2009, 12:36am UTC](https://forum.kirupa.com/t/link-to-swf-on-remote-server/281499/1 "2009-02-10T00:36:40Z")

</div>

My client can’t store the .swf file on the same server as the referencing html file.

I tried using an absolute URL in the html to load the .swf file from a different server, but it doesn’t seem to be working, (just a blank page, no errors or anything).

I’m using swfobject 2 generator to generate the html page. Works fine if both swf and html are in the same directory, doesn’t work when they’re not.

Any suggestions?

Thanks!

PS - Here’s the html code snippet produced by swfobject generator.

\<body\>  
\<script type=“text/javascript” src=“swfobject.js”\>\</script\>  
\<script type=“text/javascript”\>  
var flashvars = {};  
var params = {};  
var attributes = {};  
attributes.id = “myFlashContent”;  
swfobject.embedSWF(“HauntedPropsGhostBust.swf”, “myAlternativeContent”, “720”, “520”, “9.0.0”, “[http://www.nightfrights.net/hauntedpropscom/expressInstall.swf](http://www.nightfrights.net/hauntedpropscom/expressInstall.swf)”, flashvars, params, attributes);  
\</script\>

```
	&lt;div id="myAlternativeContent" align="center"&gt;
		&lt;a href="http://www.adobe.com/go/getflashplayer"&gt;
			&lt;img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /&gt;
		&lt;/a&gt;
	&lt;/div&gt;

```

\</body\>
