I am attempting to embed a Flash nav bar into an HTML site. I utilized the SWFObject workaround to make sure this nav bar displays in IE without any warnings. I have written the code correctly and all directory links are accurate. The site displays perfectly in Safari, Firefox, and Opera on Mac OS X and Firefox on Windows XP. However, the active content warning still displays when I attempt to view the site in Internet Explorer on XP. The pertinent portion of my code is below. Thanks a million for your support!
<div id="navigation_bar"> <p>You need to <a href="http://www.adobe.com/go/getflashplayer/">upgrade your Flash Player</a> to view this site's navigation bar.</p> </div>
<script type="text/javascript"> var so = new SWFObject("button_bar.swf", "Flash Navigation Bar", "323", "1016", "8", "#FFFFCC"); so.write("navigation_bar"); </script>
Thanks Philip. I tried opening just this code snippet on IE on a WinXP PC and it still gave me the warning. It's almost as if it's not reading the Javascript. I've experienced this problem on two WinXP PCs too. Maybe Javascript is disabled. I'll check.
<div id="navigation_bar"> <p>You need to <a href="http://www.adobe.com/go/getflashplayer/">upgrade your Flash Player</a> to view this site's navigation bar.</p> </div>
<script type="text/javascript"> var so = new SWFObject("button_bar.swf", "Flash Navigation Bar", "323", "1016", "8", "#FFFFCC"); so.write("navigation_bar"); </script>
Additionally, not even the Flash elements on the SWFObject test HTMLs that download along with the swfobject.js file display without receiving the IE WinXP active content warning. I've tested this now on three WinXP PCs that have javascript enabled, and the active content warning still persists despite the javascript workaround. I appreciate the forum's continued assistance. Thanks so much!
OK. So I did some more research. Apparently the problem I am having is a local machine zone preview issue. Everytime I have tested my site in IE on WinXP PCs I have done so from the local root drive and not http. I heard adding a "mark of the web" should solve even this local preview problem. However, this has not worked for me either. Nonetheless, can I assume that my page will work, Flash and all, when published to the server? Thank you for your patience with my inquiry!
the mark: <!-- saved from url=(0013)about:internet -->
but again, i have no idea what's causing your issue, so i can't say one way or the other that the mark of the web hack will help you. am i correct when in saying this issue only happens when you're testing locally, and happens on multiple computers testing the same local files?
Thanks for the help again. Yeah, the problem occurs when I am testing copies of the files off the local hard drives of multiple PCs. So indeed I would be in the local machine zone when doing this testing. I'm a Mac guy so all of this is new to me.
You need to set your security preferences for the flash player to allow communication from local and internet zones. Go to the below location and add the folder(s) you want. I just allow a top level folder I want all content under to work such as c:\dev\. If you set this once, it appears to apply the settings to BOTH IE and FF plugins.