embedding a flash movie into a XHTML document

liunx

Guest
****Newbie Alert!****<br />Anybody know what the code is for embedding a flash file into an XHTML I tried it will the normal HTML but it doesn't work. plus I get loads of validation errors when I use the HTML coding.<br /><br />oh wait sorted, <br /><br />do I do the no repeat in the coding or in flash MX<!--content-->
<img src="http://www.webdesignerforum.co.uk/style_emoticons/default/tongue.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tongue.gif" /> Sorted that aswell <img src="http://www.webdesignerforum.co.uk/style_emoticons/default/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /><br /><br />http://purlnetwork.com/xzide <br /><br /><br />not finished yet but what do you think to my portfolio?<!--content-->
Oliver - you've embedded flash into XHTML but your pages don't validate. I couldn't link to anything but the homepage either - guess you're still in the middle of building it...<br /><br />I've always approached the flash / XHTML problem by using a container swf file that pulls my animation in - this is the code that I use:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br /><div id="flash"><br />    <object type="application/x-shockwave-flash" data="headers/container.swf?path=headers/home.swf" width="698" height="160"><br />        <param name="movie" value="headers/container.swf?path=headers/home.swf" /><br />        <param name="quality" value="high" /><br />        <param name="menu" value="false" /><br />    <param name="bgcolor" value="#deedf6" /><br />    </object><br /></div><br /><!--c2--></div><!--ec2--><br /><br />Basically this is called the flash satay methid as outlined in this article target="_blank">Flash Satay Method</b><br /><br />You can also use:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128"><br /><param name="movie" value="images/banner.swf" /><br /><img src=http://www.webdesignerforum.co.uk/lofiversion/index.php/"banner.gif" width="288" height="128" alt="banner" /><br /></object><!--c2--></div><!--ec2--><br /><br />Which I've found by doing a search target="_blank">Valid Flash example</b><br /><br />I've not tried this myself so can't vouch for it, but think I might give this a go next time I need to put flash into my XHTML files.<br /><br />Hope that helps<br /><br />E<!--content-->
Ok thanks, Yeah, there a few things I need to sort out on the site.<!--content-->
 
Top