# ExternalInterface.call remote/outside Javascript

**URL:** <https://forum.kirupa.com/t/externalinterface-call-remote-outside-javascript/265708>\
**Category:** flash\
**Created:** [July 11, 2008, 3:09pm UTC](https://forum.kirupa.com/t/externalinterface-call-remote-outside-javascript/265708 "2008-07-11T15:09:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nixon](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nixon](https://forum.kirupa.com/u/nixon)\
**Post date:** [July 11, 2008, 3:09pm UTC](https://forum.kirupa.com/t/externalinterface-call-remote-outside-javascript/265708/1 "2008-07-11T15:09:13Z")

</div>

Hi All,

I’m trying to use ExternalInterface.call() to access a function from an outside domain that I have linked in my html page. Is there anyway to do this?

```auto

<script type="text/javascript">
        var flashvars = {};
        var params = {};
        var attributes = {}; 
        params.allowscriptaccess = "always"; 
        params.bgcolor="#ffffff";
        //params.wmode = "transparent"; 
        swfobject.embedSWF("index.swf", "flashContent", "919", "600", "9.0.0","expressInstall.swf",flashvars, params, attributes);
        </script>
        <script type="text/javascript" src="swfaddress/swfaddress.js?html=true&amp;strict=false"></script>
        <script type="text/javascript" src="http://myousidedomain/myscript.js">

```

I’m able to access local (embedded and linked) js functions but not outside functions…Any help?

Thanks in advance!

-Nixon

---

<div class="post-metadata">

**Author:** ![tfoston](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tfoston/32/2516_2.png) [@tfoston](https://forum.kirupa.com/u/tfoston)\
**Post date:** [July 11, 2008, 4:45pm UTC](https://forum.kirupa.com/t/externalinterface-call-remote-outside-javascript/265708/2 "2008-07-11T16:45:46Z")

</div>

Iclude the js page that contains the function on the same page the flash movie is on.

---

<div class="post-metadata">

**Author:** ![nixon](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nixon](https://forum.kirupa.com/u/nixon)\
**Post date:** [July 11, 2008, 5:03pm UTC](https://forum.kirupa.com/t/externalinterface-call-remote-outside-javascript/265708/3 "2008-07-11T17:03:07Z")

</div>

> [@tfoston;2356999](#):
>
> Iclude the js page that contains the function on the same page the flash movie is on.

The file is included:  
\<script type=“text/javascript” src=“[http://myousidedomain/myscript.js](http://myousidedomain/myscript.js)”\>

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [July 11, 2008, 5:09pm UTC](https://forum.kirupa.com/t/externalinterface-call-remote-outside-javascript/265708/4 "2008-07-11T17:09:03Z")

</div>

Check out the security.allowDomain method in the help files
