# ExternalInterface.call problem

**URL:** <https://forum.kirupa.com/t/externalinterface-call-problem/282078>\
**Category:** Uncategorized\
**Created:** [February 17, 2009, 11:43am UTC](https://forum.kirupa.com/t/externalinterface-call-problem/282078 "2009-02-17T11:43:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)\
**Post date:** [February 17, 2009, 11:43am UTC](https://forum.kirupa.com/t/externalinterface-call-problem/282078/1 "2009-02-17T11:43:03Z")

</div>

Hi

I have a swf file in which when a button is clicked it calls a function in a javascript file using ExternalInterface.call

Now everything works fine if all files are in one folder.

but now If a place the swf file in this location /assets/swf/test.swf and the java script file in this location /assets/scripts/test.js

it doesnt work can someone suggest a solution to this please?

Thanks
