SWFObject update, embed flash version 2
I have explain in a previous article how to use SWFObject to embed your flash clip. The method was working with SWFObject version 1.
A new version has been released few weeks ago and the syntax change a bit. Here is the new way to use SWFObject:
First create the container and give it an id:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject v2.0 dynamic embed - step 1</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
</head>
<body>
<div id=”myContent”></div>
</body>
</html>
Then include your js file and call the swfobject function:
<script type="text/javascript" src="swfobject.js"></script>
<script type=”text/javascript”>
swfobject.embedSWF(”myContent.swf”, “myContent”, “300″, “120″, “9.0.0″);
</script>
For more information and advanced option have a look at the SWFObject wiki page
Download the script: http://code.google.com/p/swfobject/downloads/list (choose the first in the list).



[...] This article dealing with the version 1 of SWF Object, version 2 explaination please visit this page: http://www.yoursiteisvalid.com/swfobject-update-embed-flash-version.html [...]