Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-13-2008, 08:44 PM   PM User | #1
spetsacdc
New Coder

 
Join Date: Mar 2008
Posts: 92
Thanks: 19
Thanked 0 Times in 0 Posts
spetsacdc is an unknown quantity at this point
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
spetsacdc is offline   Reply With Quote
Old 09-15-2008, 12:51 PM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
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.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:55 PM.


Advertisement
Log in to turn off these ads.