# ExternalInterface issues

**URL:** <https://forum.kirupa.com/t/externalinterface-issues/256966>\
**Category:** flash\
**Created:** [April 9, 2008, 5:21am UTC](https://forum.kirupa.com/t/externalinterface-issues/256966 "2008-04-09T05:21:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohan](https://avatars.discourse-cdn.com/v4/letter/r/f19dbf/32.png) [@rohan](https://forum.kirupa.com/u/rohan)\
**Post date:** [April 9, 2008, 5:21am UTC](https://forum.kirupa.com/t/externalinterface-issues/256966/1 "2008-04-09T05:21:21Z")

</div>

Hi all,

I want to get javascript and flash talking to one another. So far I have been able to get flash to javascript communication working fine, but the other way doesn’t seem to work.

Here is my flash code:

```auto
function loadingOut () {
    loading.alphaTo(0,1,"easeOutCubic",0);
}
function loadingIn () {
    loading.alphaTo(100,1,"easeOutCubic",0);
}
showcase.onPress = function () {
    ExternalInterface.call("loadContent","http://www.mysite.com/info.html");
    loadingIn();
    ExternalInterface.addCallback("ajaxIsComing",this,loadingOut);
};

```

Here is my javascript code, it doesn’t have everything in it just the part thats necessary for this question (btw I am using the Mootools framework):

```auto

   new Ajax(url, {
        method: 'get',
        onComplete: function (e) {$('skyCard').ajaxIsComing();};

```

and my HTML:

```auto

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="486" height="301" id="skyCard" >
    <param name="movie" value="flash/skyCard.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="allowScriptAccess" value="always" />
    <embed src="flash/skyCard.swf" width="486" height="301" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>

```

Any help would be greatly appreciated! Thanks in advance.
