Hi all,

I have a problem with my new portfolio im currently creating. I have some swfs within the html page which i have info being sent back and forth to trigger variouse things! Currently it works brilliantly in safari and firefox, then when i test in ie it breaks. heres my code.

CODE


<script type="text/javascript">

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
}

function callToActionscript(str) {

     getFlashMovie(str).sendToActionscript();
    
    
}



</script>




the function callToActionscript is called within the web page after receiving a trigger from the flash.

and just incase its something to do with how the flash container is coded here it is to;

CODE
                  <script language="javascript">
    if (AC_FL_RunContent == 0) {
        alert("This page requires AC_RunActiveContent.js.");
    } else {
        AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
            'width', '260',
            'height', '230',
            'src', 'photo',
            'quality', 'high',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'align', 'middle',
            'play', 'true',
            'loop', 'true',
            'scale', 'showall',
            'wmode', 'transparent',
            'devicefont', 'false',
            'id', 'photo',
            'bgcolor', '#ffffff',
            'name', 'photo',
            'menu', 'true',
            'allowFullScreen', 'false',
            'allowScriptAccess','sameDomain',
            'movie', 'menuItems/photo',
            'salign', ''
            ); //end AC code
    }
</script>
<noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="260" height="230" id="photo" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="menuItems/photo.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />    <embed src="menuItems/photo.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="260" height="230" name="photo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</noscript>  




Iv also tried to do the browser testing with the following code, however this totaly breaks it and it wont even work in safari.
CODE

function thisMovie(movieName) {
         if (navigator.appName.indexOf("Microsoft") != -1) {
             return window[movieName];
         } else {
             return document[movieName];
         }
     }




any suggestions? Im afraid im fairly new to java, im more of a flash guy. But im eager to learn, so please any help would be much apreciated.

Thanks in advance!

Lk