# Externalinterface not working on ie 9

**URL:** <https://forum.kirupa.com/t/externalinterface-not-working-on-ie-9/327102>\
**Category:** Uncategorized\
**Created:** [February 6, 2012, 11:07am UTC](https://forum.kirupa.com/t/externalinterface-not-working-on-ie-9/327102 "2012-02-06T11:07:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeBonobo](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@CodeBonobo](https://forum.kirupa.com/u/CodeBonobo)\
**Post date:** [February 6, 2012, 11:07am UTC](https://forum.kirupa.com/t/externalinterface-not-working-on-ie-9/327102/1 "2012-02-06T11:07:19Z")

</div>

0 down vote [favorite](http://stackoverflow.com/questions/9158989/externalinterface-not-working-in-ie9#)  
share [g+] share [fb] share [tw]  
I am having problems with External interface and IE9. The swf objects play fine but none of the information input is transferred to the cookies that should be set. I have seen that there are other questions similar to this but have not been able to solve my problem using them. THis is the html we are using

```auto

<div id="flashcentre">
<object type="application/x-shockwave-flash"data="http://workingflashlink" width="600" height="450">
<param name="movie" value="http://workingflashlink">
</object>
</div>

```

then the flash, this is were I suspect the problem is…

```auto

if (ExternalInterface.available) 
{ 

var CookieName:String = "unitsWeekTotal"; 
var CookieValue = unitsWeekTotal; 

ExternalInterface.call("setCookie", CookieName, CookieValue);
} 

```

Then the Javascript inside script tags

```auto

function setCookie(CookieName, CookieValue, expiredays)
{value=CookieValue;

var ExpireDate = new Date ();

ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

document.cookie = CookieName + "=" + escape(value) +

((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

```

Any help would be greatly appreciated, if I have overlooked a solution that is already present. I think it is the flash because I am pretty new to flash coding.  
thanks in advance
