Page 1 of 1

IE7 Problem

Posted: Wed Nov 26, 2008 11:54 pm
by deeessay
Hi I know this is not php-related for the most part but I decided to post it here anyway as I you guys have helped me here before.

My problem is the SWF movie won't load in IE7 although it works fine in Firefox3. All I get is a white area that when you right-click on it, a message saying "movie not loaded" appears in the context menu. I am using PHP5 and IE7 has Flash Player 10 installed. I been trying to look for a solution for this problem for months now and I have started to feel this uncontrollable wrath for IE7.

anyways, here's the code:


Code: Select all

 
echo "<object type=\"application/x-shockwave-flash\" data=\"https:XXX.com/picture.php?image_id=$image_id\" width=\"800\" height=\"600\">";
echo "<param name=\"movie\" value=\"https:XXX.com/picture.php?image_id=$image_id\" />";
echo "<param value=transparent name=wmode />";
echo "</object>";
 

and here's picture.php

Code: Select all

 
$result = mysql_query("SELECT filename,filetype, data, width, height FROM tablename1 WHERE image_id = $image_id");
if (mysql_num_rows($result)) {
$row = mysql_fetch_object($result);
header("Content-type: $row->filetype");
echo $row->data;}
 
any help will be greatly appreciated. thanks!

Re: IE7 Problem

Posted: Thu Nov 27, 2008 10:17 am
by pickle
Rather than 4 different echo statements, use one & heredocs:

Code: Select all

echo <<<FLASH
<object>
...
</object>
FLASH;
This is a pretty good article about standards compliant flash: http://www.alistapart.com/articles/flashsatay

Re: IE7 Problem

Posted: Fri Dec 05, 2008 11:30 pm
by JAB Creations
Here is a Flash object element with alternative content that is valid and works in all versions of all browsers all the way back to IE4...

Code: Select all

<object data="example.swf" type="application/x-shockwave-flash"> <param name="movie" value="example.swf" /> <param name="loop" value="false" /> <param name="play" value="true" /> <param name="quality" value="high" /><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" style="height: 32px; width: 32px;" tabindex="3" title="Install Flash Plugin"><img alt="Install Flash Plugin" src="images/interface-plugin-flash.gif" style="height: 32px; width: 32px;" title="Install Flash Plugin" /></a></object>
I'm not sure if that is the issue though give it a try and let me us know how it goes please. :) =