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 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2008
    Posts
    92
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Best way to embed?

    Hi, I am hoping to allow users on my website to post flash content (.swf files).

    I know myspace uses a single object tag, but isn't it better to use next object tags such as:

    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="270" height="280">
      <param name="movie" value="mp3player.swf?playlist=testplay.php?fid=<?=$id?" />
      <param name="wmode" value="transparent" />
      <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="mp3player.swf?playlist=testplay.php?fid=<?=$id?>" width="270" height="280">
          <param name="wmode" value="transparent" />
        </object>
      <!--<![endif]-->
    </object>
    Is there any reason (perhaps security) that myspace only uses one object tag?

    What would you recommend?

    Thank you

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    http://blog.deconcept.com/swfobject/ read at the bottom for some explanations about different embed types. Also my signature has a post about embedding Flash with best practices. Just so you know, myspace doesn't exemplify the best coding practices. It would probably be simplicity and support for older systems.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

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