# Calling JS with AS 3.0

**URL:** <https://forum.kirupa.com/t/calling-js-with-as-3-0/246831>\
**Category:** flash\
**Created:** [December 14, 2007, 11:59pm UTC](https://forum.kirupa.com/t/calling-js-with-as-3-0/246831 "2007-12-14T23:59:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![riveroaks](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Post date:** [December 14, 2007, 11:59pm UTC](https://forum.kirupa.com/t/calling-js-with-as-3-0/246831/1 "2007-12-14T23:59:45Z")

</div>

\*I retract the following question…I found out that you cannot place parenthesis after the function name since a string is expected

How do you call a javascript function defined within your HTML page with AS 3.0

I tried ExternalInterface.call(“myFunction()”); but that didn’t work…any ideas? Thanks.
