Jump to content

How to embed swf for html4 & 5


Recommended Posts

I have a page with an embedded swf file, and it works great on just about every browser I have. I'm using the embed tag inside the object tag to accommodate both ie and the rest of the gang. However, it won't display on the iPad, I'm guessing because of the strict html5 stance. Is there a way to have this same code support all three? The code I have looks something like this: <object classid=... <param name="Movie" value="file.swf" ... <embed name="Sample" value="file.swf"... /> </embed></object> Any assistance will be greatly appreciated. Thanks!

Link to post
Share on other sites
<object data="file.swf" type="application/x-shockwave-flash" width="..." height="...">    <param name="movie" value="file.swf">     <!-- If flash is not installed -->    <p>You need Adobe Flash Player to view this content</p></object>

Link to post
Share on other sites

Right, thanks. It is good to tell them that flash is needed if it doesn't play. However, I thought the embed tag was needed in certain browsers. This will play in html4 and html5? On an iPad and on an old Chrome browser?

Edited by xmanmonk
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...