Microsoft is changing the way ActiveX controls work in Internet Explorer. :eek: it affects any Flash movie (SWF) content in a web page.

i found one solution its working fine with some .swf file , if .swf file contain some actions scripts then code makes problems , pls any one can help me, code is attached here with

<!--[if gte IE 6]>
<script src="dynActiveX.js"></script>
<![endif]-->
// When the page loads:
window.onload = function(){
  if (document.getElementsByTagName) {
    // Get all the tags of type object in the page.
      var objs = document.getElementsByTagName("object");
      for (i=0; i<objs.length; i++) {
        // Get the HTML content of each object tag
        // and replace it with itself.
        objs[i].outerHTML = objs[i].outerHTML;
      }
   }
}
// When the page unloads:
window.onunload = function() {
  if (document.getElementsByTagName) {
    //Get all the tags of type object in the page.
    var objs = document.getElementsByTagName("object");
    for (i=0; i<objs.length; i++) {
      // Clear out the HTML content of each object tag
      // to prevent an IE memory leak issue.
      objs[i].outerHTML = "";
    }
  }
}

I have a similar problem.
But your code not helps to me.

Did you found new solution?

Line 9 and 21. objs[i].outerHTML Replace 'outerHTML' with 'innerHTML'.
I did not test and I am not sure it work not. You should post this thread in the Javascript forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.