PDA

View Full Version : Cant get my flash to run in IE - please help!


jeddi
09-06-2006, 09:22 AM
Actually its not a basic image, its a flash file.

I noticed that in IE, if I call my script with a form action
then it all works fine, my script includes:

<div class="box1" style='position:absolute; left:0px; top:0px'>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="900" HEIGHT="120" id="flashtest1" ALIGN="">
<PARAM NAME=movie VALUE="flashtest1.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#000000> <EMBED src="<?php echo $yol ?>flashtest1.swf" loop=false quality=high bgcolor=#000000 WIDTH="900" HEIGHT="120" NAME="flashtest1" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
</div>

But when it is call with a hyperlink, an href - then I get an error on my page, the flash doesn't play and my other links dont work. :mad:

Any ideas why this is and how I can fix it ?

Of course, it works fine in Moz FF !

Many thanks.

_Aerospace_Eng_
09-06-2006, 06:30 PM
I noticed you are calling the php variable in the embed tag but not the param movie value which is what IE uses. Try this
<div class="box1" style="position:absolute; left:0px; top:0px">
<object type="application/x-shockwave-flash" data="<?php echo $yol; ?>flashtest1.swf" width="900" height="120">
<param name="movie" value="<?php echo $yol; ?>flashtest1.swf">
<param name="loop" value="false">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
</object>
</div>

jeddi
09-06-2006, 08:50 PM
Hi, thanks for your rply,

What about the class - isn't that needed ?
i.e. classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

and what about the codebase ?
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"

and finally the plugin:
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">

Dont I need these bits ?

jeddi
09-06-2006, 08:58 PM
Well I tried it and it works fine !! :thumbsup:

... but how come it doesn't need all that other stuff ?

I'd like to understand - I assumed that the plugin was necassary.


If a browser doesn't have flash capability, how can I detect that and show this image instead:

<img alt="header (13K)" src="http://localhost/yod/flashtest1.jpg" height="130" width="920" />

Thanks for your help, again. :)

_Aerospace_Eng_
09-06-2006, 09:44 PM
<div class="box1" style="position:absolute; left:0px; top:0px">
<object type="application/x-shockwave-flash" data="<?php echo $yol; ?>flashtest1.swf" width="900" height="120">
<param name="movie" value="<?php echo $yol; ?>flashtest1.swf" />
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<img alt="header (13K)" src="flashtest1.jpg" height="130" width="920" />
</object>
</div>
Should work just fine. The image should show up if flash isn't installed or its not the correct version for the movie. Read this article to learn more http://alistapart.com/articles/flashsatay

tribalmaniac
09-07-2006, 02:46 PM
Well I tried it and it works fine !! :thumbsup:

... but how come it doesn't need all that other stuff ?

I'd like to understand - I assumed that the plugin was necassary.


If a browser doesn't have flash capability, how can I detect that and show this image instead:

<img alt="header (13K)" src="http://localhost/yod/flashtest1.jpg" height="130" width="920" />

Thanks for your help, again. :)

you can embed a flash file into a page with just,

<EMBED SRC="http://www.yoursite.com/flashfile.swf" WIDTH="550" HEIGHT="400">

the rest just help :)