...

View Full Version : Replacing .swf with .gif



vinny388
11-09-2006, 12:45 PM
I am struggling to get the coding right to replace a .swf with a .gif/.jpg if a user does not have a flash player installed.

So far, I have this,


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="595" height="125" title="test3">
<param name="movie" value="../assets/images/flash/test3.swf" />
<param name="quality" value="high" />
<embed src="../assets/images/flash/test3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="595" height="125"></embed>
</object>

This coding actually works, in a sense, that it shows a download image (get flashplayer) if no flash is detected. BUT I would like to have my own image appear instead?

Please help a confused person, lol!:confused:

Graft-Creative
11-09-2006, 05:42 PM
I'd take a look at this:

swfObject (http://blog.deconcept.com/swfobject/)

It's a pretty good way of embedding your Flash stuff, and it offers a simple way to offer fallback content.



Using SWFObject is easy. Simply include the swfobject.js Javascript file, then use a small amount of Javascript on your page to embed your Flash movie. Here is an example showing the minimum amount of code needed to embed a Flash movie:

<script type="text/javascript" src="swfobject.js"></script>

<div id="flashcontent">
This text (or your image) is replaced by the Flash movie.
</div>

<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
so.write("flashcontent");
</script>


(emphasised text mine)

I'd take a look, it's used by some major websites, Adobe being just one.

Kind regards,

Gary

StupidRalph
11-10-2006, 12:23 AM
I'd take a look at this:

swfObject (http://blog.deconcept.com/swfobject/)

It's a pretty good way of embedding your Flash stuff, and it offers a simple way to offer fallback content.


(emphasised text mine)

I'd take a look, it's used by some major websites, Adobe being just one.

Kind regards,

Gary

Is this the same code used to sidestep that annoying IE update where you have to actually CLICK the flash movie to activate its use?

harbingerOTV
11-10-2006, 02:09 AM
Is this the same code used to sidestep that annoying IE update where you have to actually CLICK the flash movie to activate its use?

yes indeed. plus it offers that easy advantage discussed above. you can slap a non flash navigation under it and all sorts of things.

jauzi
11-17-2006, 05:03 PM
("movie.swf", "mymovie", "200", "100", "7", "#336699");

can you please explain what all this variables are?

Thank you very much.

Jauzi

_Aerospace_Eng_
11-17-2006, 06:24 PM
I'm guessing you didn't read the faqs from the site posted. If you had it would have told you what everything was. You need to actually read. http://blog.deconcept.com/swfobject/#howitworks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum