A Web Design Community curated by Chris Coyier

Code Snippets Gallery

Code Snippets > HTML > Embedding Flash Submit one!

Embedding Flash

This is different than the default code that Flash provides. That typically involves the <embed> tag and is not valid XHTML. This doesn’t use that, and is fully valid.

<object type="application/x-shockwave-flash"
	data="your-flash-file.swf"
	width="0" height="0">
	<param name="movie" value="your-flash-file.swf" />
	<param name="quality" value="high"/>
</object>

Reference URL

8 Responses

  1. LuK says:

    will this work crossbrowser?

  2. eh? says:

    This seems very similar to the Flash Satay method from a while back.

  3. Ryan says:

    I was taught that you should always use swfObject for flash replacement. Isn’t it almost always a better solution?

    • That’s what I typically use. Although it does require javascript, and theoretically users might have javascript disabled and Flash enabled.

      In either case, it’s just a good thing to know there is a valid way to embed flash without any help.

  4. How do you add a controller.

  5. Ozzy says:

    How could I embed a rotating flash movie as a background in my page? Thanks for the help.

  6. applezqp says:

    It don’t work in IE.

Leave a Comment

Remember:
  • Be nice.
  • Wrap multiline code in <pre> and <code> tags and escape it first (turn <'s into &lt;'s).
  • You may use regular HTML stuff like <a href="">, <em>, and <strong>
* This website may or may not contain any actual CSS or Tricks.