I am using blocks to display content on a page, and some of the blocks have embedded flash movies. I use code such as that shown below :

<?php print swf("flash/movie-filename.swf", "823x436"); ?>

WHen the page is displayed in firefox the movies are displayed as I want them to be.
However, when I display the same page in IE7 the movie is not shown and I see "page not found" in the Drupal log.
Any idea why this might be, and how I might be able to debug the issue ?

Note: If I copy the HTML from the block and add it to a page and display this page it works fine. I therefore suspect there is some issue when displaying movies in a block from IE. It is however strange that this works ok using firefox ...

Comments

TimAlsop’s picture

I just tried to reconfigure the embedding settings so that instead of SWFObject, I use jQuery Plugin. When I did this the IE display now works ok ... So, it might be something specific to using SWFTools with SWFObject. I say this because I load SWFObject directly elsewhere on my site in order to change params such as loop/play etc.

TimAlsop’s picture

I am making progress...

I was actually embeding a movie using SWFObject on same page I was having problems with, and this appears to be causing the problem. I removed this movie and now all movies on the page, in blocks are displayed using code like :

<?php print swf("flash/movie-filename.swf", "823x436"); ?>

In summary, if I have a mixture of code like that shown above and code like :

<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
   var so = new SWFObject("/d2/files/flash/SAP GUI Secure SSO - 640x480.swf", "mymovie", "640", "480", "8", "#FFFFFF");
   so.addParam("play", "true");
   so.addParam("loop", "true");
   so.write("flashcontent");
</script>

on the same page, in blocks when i display the page in IE 7 only the SWFObject movie is shown and the other movies are not, and I get "page not found" in log. If I remove the SWFObject movie then the movies displayed using php print works.

Surely it should be possible to display movies using a combination of php print swf(...) syntax as well as the javascript method shown above ?

What am I missing ?

BTW. The reason why I am using this javascript method is so that I can display the movie and get it to start playing - all other movies are displaying without playing, unless the play button at bottom of movie is pressed.

Stuart Greenfield’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)

Issue is over 2 1/2 years old, and no other users have reported this. Assuming it can be closed!