Onmouseover/out function not working in IE :@

Ahhhh!! I’ve spent a good few hours trying to figure out why this code wont work in IE.
It’s making use of the ExternalInterface from flash 8.0 and works perfectly in Firefox.


function richMedia(val) {
     if (document.getElementById("flashLeft") && document.getElementById("flashRight")) {
         if (val) {
            document.getElementById("flashLeft").richMedia(1);
            document.getElementById("flashRight").richMedia(1);
         } else {
            document.getElementById("flashLeft").richMedia(0);
            document.getElementById("flashRight").richMedia(0);
         }
     }
}

It’s called by:


onmouseover="richMedia(true);" onmouseout="richMedia(false);

Any ideas? :slight_smile: