# Communicate with Javascript

**URL:** <https://forum.kirupa.com/t/communicate-with-javascript/325781>\
**Category:** flash\
**Created:** [November 4, 2011, 3:59am UTC](https://forum.kirupa.com/t/communicate-with-javascript/325781 "2011-11-04T03:59:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beinniv](https://avatars.discourse-cdn.com/v4/letter/b/ee7513/32.png) [@beinniv](https://forum.kirupa.com/u/beinniv)\
**Post date:** [November 4, 2011, 3:59am UTC](https://forum.kirupa.com/t/communicate-with-javascript/325781/1 "2011-11-04T03:59:57Z")

</div>

Hi,

I am trying to send some information to a javascript function on the same html page as the swf file is in. I used the tutorial here on Kirupa but for same way it doesnt work.

```
ExternalInterface.call("fillForm('"+ l.x, l.y +"')");
ExternalInterface.call("fillForm", l.x, l.y);

```

These are the variations I tried. Anybody knows what I am doing wrong because its almost the same as the tutorial.
