# Problem with External Interface

**URL:** <https://forum.kirupa.com/t/problem-with-external-interface/305676>\
**Category:** Uncategorized\
**Created:** [March 1, 2010, 8:15pm UTC](https://forum.kirupa.com/t/problem-with-external-interface/305676 "2010-03-01T20:15:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ParanoidAndroid](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@ParanoidAndroid](https://forum.kirupa.com/u/ParanoidAndroid)\
**Post date:** [March 1, 2010, 8:15pm UTC](https://forum.kirupa.com/t/problem-with-external-interface/305676/1 "2010-03-01T20:15:21Z")

</div>

i want to call a javascript function from within an embeded swf file in a html page and i’m using the ExternalInterface class. i know this function must be defined in a \<script\> tag in the html page. however, i want to have all my javascript code in an external file, but it doesn’t work. my trial file just can’t find the function, although i have my external js file linked in the header. how can i do this? i’d really appreciate your help, thanks.
