I use this method. Unzip the attached JS file and put it into a scripts directory in your root.
HTML Usage: <head> <script type="text/javascript" src="scripts/swfobject.js"></script> </head> <body> <!--start new code for MS IE activeX issue--> <div id="navigation"> <!-- <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="757" height="147" id="main" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="main.swf?linkSection='+query1+'" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <embed src="main.swf?linkSection='+query1+'"" quality="high" bgcolor="#ffffff" width="757" height="147" name="main" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> --> </div> <script type="text/javascript"> var agt=navigator.userAgent.toLowerCase(); var so = new SWFObject("main.swf", "core", "757", "147", "8"); so.addParam("wmode", "transparent"); so.addVariable("quality", "high"); so.addVariable("linkSection", query1); so.write("navigation"); </script> </body> That should fix it...just repleace the obvious things in the code, like the name of your swf and the height/width and you should be good to go. Victor ---------- Original Message ---------------------------------- From: Batista Mihai <[EMAIL PROTECTED]> Reply-To: Flashcoders mailing list <flashcoders@chattyfig.figleaf.com> Date: Thu, 28 Sep 2006 11:28:38 -0700 (PDT) >Hello! Can anyone help me with a script: i want the swf to be enabled when the >viewers open the swf in internet explorer so they dont have to click to >activate. Thank you! Mike > > >--------------------------------- >Get your email and more, right on the new Yahoo.com >_______________________________________________ >Flashcoders@chattyfig.figleaf.com >To change your subscription options or search the archive: >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >Brought to you by Fig Leaf Software >Premier Authorized Adobe Consulting and Training >http://www.figleaf.com >http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com