• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 748
  • Last Modified:

Cant view embedded flash content on a local html-file in Internet Explorer 7

I am creating a CD for our customers with presentational material which includes html-files with embedded flash videos. Therefore these files has to run locally from the cd/dvd-drive. It is all working well on Internet Explorer 8, and FireFox - but I discovered now that some of the flash videos are not running in Internet Explorer 7.

What is perhaps more strange is that I can view these same html files / flash videos if I put these files on a webserver and open them up from there. So my guess is that this has something to with the security settings in Internet Explorer, which are more strict when it comes to running files outside of the internet? But even though I have tried to manually lowering the security settings in IE7, and not succeded... - this would not be a solution as it is not an option to send out a cd which requires the receivers to manually perform such changes.

As these files trigger an Active-X control I´ve put a "mark of the web" after the html DOCTYPE, which worked well on IE8. That is, I no longer get the active-x warning each time flash video was played. But regarding the issue with IE 7, it makes no difference. I´ve tried both: "<!-- saved from url=(0014)about:internet -->" and
"<!-- saved from url=(0016)http://localhost -->".

At the moment I am using this code:

At the top I have:

"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!-- saved from url=(0016)http://localhost -->"

And further down in the body tag I use:

        <object width="500" height="320">
        <param name="movie" value="film.swf"  />
        <param name="wmode" value="transparent" />
        <embed src="flash/film.swf" width="500" height="320" wmode="transparent" >
       
        </embed>

        </object>

The object tag is enclosed in a container div tag - and the html document itself makes its appearance through an "iframe" on the index-page.

When the page is viewed in IE7 the flash window object is just blank, with a red cross in the upper corner.

Do you know of any html code, script, css or what ever...I might try out to make this work on IE7!?
0
andre_st
Asked:
andre_st
  • 3
2 Solutions
 
andre_stAuthor Commented:
I might add that it also works fine if I, in the locally run html file, link to the flash file on a webserver instead. So this indicates to me that the html code I am using should be correct.

As I mentioned, the flash windows is just blank - but it is actually not a red cross in the upper left corner, but the icon which usually turns up when an image file cannot be located. Can it be that the location should be written in some other manner...? I´ve tried using "/flash/film.swf", "flash/film.swf" and "../flash/film.swf". I´ve also tried moving the flash file to the root and just using "film.swf" but it makes no difference...
0
 
rdivilbissCommented:
It looks like you neither supply the classid not tye application type.  You might try <object classid="clsid:D27CDB6E-AE6D-11cf-96B8- »
444553540000" type="application/x-shockwave-flash" width="500" height="320">

To force a recalcitrant IE to load the Flash plug-in...e.g. give its classid which is recommended.  This shouldn't be needed for IE 8, but I'm not where you are so I can't test that.  Non-IE browsers of relatively recent vintage should be happy with the application/x-shockwave-flash type being set.

Many older browsers require either the classid (IE) or the never W3C approved, non-existent in the HTML spec <embed> tag which all IE browser's ignore.

I have all Flash content on my web site served without <embed> and it is working in all "current" browsers using just the <object> tag.  But I must give a great deal of the credit to A List Apart's examination of the issues.

http://www.alistapart.com/articles/flashembedcagematch/
0
 
andre_stAuthor Commented:
   
<object
            type="application/x-shockwave-flash" data="flash/littlebridge/littlebridge_promo.swf"
            width="500" height="320">
            <param name="movie" value="flash/littlebridge/littlebridge_promo.swf" />
            <param name="wmode" value="transparent" />
</object>
0
 
andre_stAuthor Commented:
I somehow managed to post the above answer, not beeing done writing...

First of all, sorry for the late reply. There was some problem with the bank-withdrawal for the membership fee. So I wasnt able to log in.

Second, the above code seems to work. I.E. you dont need the embed code as rdivilbiss also points out. Now I can view the content locally from either the harddrive, or from a cd-rom. The above code works at least in IE 6, 7 and 8. And Mozilla firefox, which was my aim. I found this code when I tried to validate my code with the help of http://validator.w3.org/ 

Great tool, and gives help if you need one. The link from rdivilbiss also points to a similar solution as I found.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now