Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2011
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Converting embed() To object() Problem

    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:
    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!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Include swfobject.js on your page e.g.
    Code:
    <script type="text/javascript" src="swfobject.js"></script>
    Add this after the line above
    Code:
    		<script type="text/javascript">
    			swfobject.registerObject("myshow", "9.0.0");
    		</script>
    Then place this where you want your flash to show
    Code:
    <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=%2Fphotos%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=%2Fphotos%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/swfo...tor/index.html
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • Users who have thanked _Aerospace_Eng_ for this post:

    Myrmidon16 (05-04-2011)

  • #3
    New Coder
    Join Date
    Feb 2011
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts
    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?

  • #4
    New Coder
    Join Date
    Feb 2011
    Posts
    38
    Thanks
    6
    Thanked 0 Times in 0 Posts
    nvm a simple google search helped me figure that out . thanks again for your help!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •