# AS -\> Javascript

**URL:** <https://forum.kirupa.com/t/as-javascript/267318>\
**Category:** flash\
**Created:** [July 30, 2008, 5:51pm UTC](https://forum.kirupa.com/t/as-javascript/267318 "2008-07-30T17:51:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![derleek](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@derleek](https://forum.kirupa.com/u/derleek)\
**Post date:** [July 30, 2008, 5:51pm UTC](https://forum.kirupa.com/t/as-javascript/267318/1 "2008-07-30T17:51:06Z")

</div>

I’m trying to include a simple action script command to send a string that contains ‘flashDiv’ to a javascript function hideFlash().

I have the code:

```auto
import flash.external.*;
function() {
ExternalInterface.call("hideFlash","flashDiv");
}

```

but i get all kinds of errors. i threw this little thing together based off information i found on some tutorial on writing from flash to JS. doesn’t seem to work =(
