# Applying SWF into HTML

**URL:** <https://forum.kirupa.com/t/applying-swf-into-html/257338>\
**Category:** Uncategorized\
**Created:** [April 12, 2008, 10:24pm UTC](https://forum.kirupa.com/t/applying-swf-into-html/257338 "2008-04-12T22:24:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TyPo](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@TyPo](https://forum.kirupa.com/u/TyPo)\
**Post date:** [April 12, 2008, 10:24pm UTC](https://forum.kirupa.com/t/applying-swf-into-html/257338/1 "2008-04-12T22:24:40Z")

</div>

(I know this might be lame, but Im doing it for a client and really need this as well as my other post so thank you for ANY information! please…need code soon)

I think I got this code from a friend…Anyways it does NOT work with the new internet explorer and my teacher was saying that \<object\> works with firefox, while src works with explorer…so were do I put the src to make it work in internet exploder?

Or if anyone has better overall, simpler code, that would be much appreciated…

AGAIN: I hadnt really made myself clear as to what I need… I just need that code that puts the actionscript 3.0 SWF into the HTML…O yeah, and center it in the vertical and horizontal middle!

HERES MINE:

\<html\>  
\<head\>  
\<title\>  
| myPage |  
\</title\>  
\<LINK REL=StyleSheet HREF=“style.css” TYPE=“text/css” MEDIA=screen\>  
\<head\>  
\<body\>  
\<table border=“0” width=“100%” height=“430px” style=“position:relative; top:-100px;”\>  
\<tr\>  
\<td\>  
\<div style=“width:100%; height:20px; vertical-align:middle;” align=“center”\>  
\<object classid=“firstplay.swf” src=“firstplay.swf” width=“888” height=“468” align=“absbottom” vspace=“absmiddle”\>  
\<param name=“allowScriptAccess” value=“sameDomain” /\>  
\<param name=“allowFullScreen” value=“false” /\>  
\<param name=“movie” value=“firstplay.swf” /\>  
\<param name=“quality” value=“high” /\>  
\<param name=“bgcolor” value="#000000" /\>  
\<embed src=“firstplay.swf” width=“888” height=“468” align=“absbottom” quality=“high” bgcolor="#000000" allowscriptaccess=“sameDomain” allowfullscreen=“false” type=“application/x-shockwave-flash” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” /\>  
\</object\>  
\</td\>  
\</tr\>  
\</table\>  
\</div\>  
\</div\>  
\</body\>  
\</html\>

again this code works, just not in internet exploder!
