# ExternalInterface and separate .js files

**URL:** <https://forum.kirupa.com/t/externalinterface-and-separate-js-files/248424>\
**Category:** flash\
**Created:** [January 8, 2008, 3:47am UTC](https://forum.kirupa.com/t/externalinterface-and-separate-js-files/248424 "2008-01-08T03:47:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon4341189](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@anon4341189](https://forum.kirupa.com/u/anon4341189)\
**Post date:** [January 8, 2008, 3:47am UTC](https://forum.kirupa.com/t/externalinterface-and-separate-js-files/248424/1 "2008-01-08T03:47:22Z")

</div>

Hello guys,

I am attempting to call a javascript function from flash. If the stuff in the .js is placed between \<script\> tags on the html page with the flash is embedded, then the call goes through fine.

However, if the script is placed in a .js file and embedded in the html file via:

```auto

<script type="text/javascript" src="scripts/bookmark.js"></script>

```

the call from ExternalInterface fails.

Any ideas appreciated

cheers 🙂
