# \[F8\] Calling AS functions from JS via ExternalInterface - HELP NEEDED!

**URL:** <https://forum.kirupa.com/t/f8-calling-as-functions-from-js-via-externalinterface-help-needed/218321>\
**Category:** flash\
**Created:** [March 6, 2007, 7:59pm UTC](https://forum.kirupa.com/t/f8-calling-as-functions-from-js-via-externalinterface-help-needed/218321 "2007-03-06T19:59:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve\_b](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@steve\_b](https://forum.kirupa.com/u/steve_b)\
**Post date:** [March 6, 2007, 7:59pm UTC](https://forum.kirupa.com/t/f8-calling-as-functions-from-js-via-externalinterface-help-needed/218321/1 "2007-03-06T19:59:29Z")

</div>

Hi, I have read so many tutorials about this and I cant get my head around it. All the comments say that this is easy stuff, but im lost…

I need to call an AS function from an HTML link, presumably via JS is the best way to do this. The flash function I need to call is this:

```php
trackSound = function (target, sound_url);

```

Target is an integer, sound\_url is a URL. These will be written into Javascript code from a database…

No matter what I try, I cant do this. My deadline is fast approaching, and im losing sleep! If someone can give me a step by step guide how to do this I will be indebted to them.

Thanks,

Steve
