...

View Full Version : Converting embed() To object() Problem



Myrmidon16
05-03-2011, 11:59 PM
Hello all;

I am trying to convert the embed() tag to object() for one of my websites so it will validate. At first, everything worked out except in IE (of course), where the embedded video (Flickr slideshow) wouldn't stream, so it would take way too long to load. I googled upon a fix for that at http://code.google.com/p/swfobject/wiki/documentation, however now the slideshow works in IE but not in Firefox or Chrome. Here is my object code:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649" />
<param name="flashvars" value="offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2F57294091%40N03%2Fsets%2F72157626343957151%2Fshow%2F&amp;page_show_back_url= %2Fphotos%2F57294091%40N03%2Fsets%2F72157626343957151%2F&amp;set_id=72157626343957151&amp;jump_to=" />
<param name="allowFullScreen" value="true" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://www.flickr.com/apps/slideshow/show.swf?v=71649">
</object>
<!--<![endif]-->
</object>


This can be seen implemented at http://www.tcnj.edu/~wclublax/pictures.php. I only did the first step at the swfobject page because it worked in IE and I tried continuing the steps but then it didn't work in any browser. Please help me out and let me know what I am doing wrong. Thanks!

_Aerospace_Eng_
05-04-2011, 04:06 AM
Include swfobject.js on your page e.g.

<script type="text/javascript" src="swfobject.js"></script>
Add this after the line above

<script type="text/javascript">
swfobject.registerObject("myshow", "9.0.0");
</script>
Then place this where you want your flash to show

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="600" id="myshow">
<param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649" />
<param name="flashvars" value="offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2F57294091%40N03%2Fsets%2F72157626343957151%2Fshow&amp;page_show_back_url=%2F photos%2F57294091%40N03%2Fsets%2F72157626343957151%2F&amp;set_id=72157626343957151" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://www.flickr.com/apps/slideshow/show.swf?v=71649" width="500" height="600">
<param name="flashvars" value="offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2F57294091%40N03%2Fsets%2F72157626343957151%2Fshow&amp;page_show_back_url=%2F photos%2F57294091%40N03%2Fsets%2F72157626343957151%2F&amp;set_id=72157626343957151" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
This generator would have probably helped you a lot.
http://www.bobbyvandersluis.com/swfobject/generator/index.html

Myrmidon16
05-04-2011, 04:51 PM
thanks that worked! like i said i tried that before, but it didn't work for me. i didn't add the flashvars param() into the IE object before, so that might have been what was wrong.

one more question: is there any way to apply this over multiple Flash videos on the same page?

Myrmidon16
05-04-2011, 05:05 PM
nvm a simple google search helped me figure that out :D. thanks again for your help!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum