# Javascript - external swf

**URL:** <https://forum.kirupa.com/t/javascript-external-swf/320505>\
**Category:** Uncategorized\
**Created:** [March 25, 2011, 10:58am UTC](https://forum.kirupa.com/t/javascript-external-swf/320505 "2011-03-25T10:58:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![actionScriptr](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@actionScriptr](https://forum.kirupa.com/u/actionScriptr)\
**Post date:** [March 25, 2011, 10:58am UTC](https://forum.kirupa.com/t/javascript-external-swf/320505/1 "2011-03-25T10:58:30Z")

</div>

Hi!

I am trying to edit some JavaScript code which is in SwfAddress 2.4 to enable cross-server deeplinking functionality to a Swf. For our purpose we are trying to load the Swf file from a server external to the html & JS, which works fine up until the address value needs to update the swf.

The line of code which seems to be casuing the problem is; the first instance of objsetter, it seems to break the application and stop the remaining code in the \_swfChange function from executing (and prevent communication with Flash), therefore also preventing back/forward button functionality on the browser.

```
I’m convinced this should really be able to work as it does work fine on the same domain. Have tried enabling crossdomain.xml on both servers and also added 

```

var domain:String = “\*”;  
Security.allowDomain(domain);

Security.allowInsecureDomain(domain);

in the swf.

Thanks in advance.
