ExternalInterface addCallBack not working please help

hi,
I have tried almost everything I know about ExtrenalInterface.But the addCallBack is not working.
It just keeps giving me the below error
this.getFlashMovie().sendToActionScript is not a function.
This is my flash code.


Security.allowDomain("*");
import flash.external.ExternalInterface;
ExternalInterface.addCallback('sendScript',callback);
function callback(){
    txt.text="finall got it."
}

This is my html code


<script type="text/javascript">
    function getFlashMovie(movieName) {
               var isIE = navigator.appName.indexOf("Microsoft") != -1;
               return (isIE) ? window[movieName] : document[movieName];
       }
    function callToActionscript(data) {
        console.log("called: "+this.getFlashMovie("flashm"));
          getFlashMovie("flashm").sendScript(data);
       }
var params = {allowScriptAccess :'always'};
swfobject.embedSWF("extrenal.swf", "flashm", "550", "400", "9.0.0", "expressInstall.swf",params);
</script>
<input id="launchBtn" type="submit" onclick="callToActionscript();" value="Launch Lesson">
<div id=flashm></div>

All files are locally stored in same folder even the swfobject.js.
My entire drive is allowed to communicate with the web too in the flash player settings.
This is frustrating as I have already done a lot of these kind of examples but can seem to figure out why this is happening.
The externalInterface.call() method works fine.
Any help is really appreciated.
Thank you