# Center Flash HTML

**URL:** <https://forum.kirupa.com/t/center-flash-html/316536>\
**Category:** flash\
**Created:** [November 24, 2010, 6:49pm UTC](https://forum.kirupa.com/t/center-flash-html/316536 "2010-11-24T18:49:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirduffalot](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@Sirduffalot](https://forum.kirupa.com/u/Sirduffalot)\
**Post date:** [November 24, 2010, 6:49pm UTC](https://forum.kirupa.com/t/center-flash-html/316536/1 "2010-11-24T18:49:04Z")

</div>

Hi I want to center the flash object on the page. How do I edit the HTML code from a published CS5 file -  
(i know no html)

PUBLISHED CODE -

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)” lang=“en” xml:lang=“en”\>  
\<head\>  
\<title\>index\</title\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” /\>  
\<script type=“text/javascript” src=“swfobject.js”\>\</script\>  
\<script type=“text/javascript”\>  
\<!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. --\>  
\<!-- For more information see the SWFObject page at Google code ([http://code.google.com/p/swfobject/](http://code.google.com/p/swfobject/)). --\>  
\<!-- Information is also available on the Adobe Developer Connection Under “Detecting Flash Player versions and embedding SWF files with SWFObject 2” --\>  
\<!-- Set to minimum required Flash Player version or 0 for no version detection --\>  
var swfVersionStr = “10.0.0”;  
\<!-- xiSwfUrlStr can be used to define an express installer SWF. --\>  
var xiSwfUrlStr = “”;  
var flashvars = {};  
var params = {};  
params.quality = “high”;  
params.bgcolor = “#ffffff”;  
params.play = “true”;  
params.loop = “true”;  
params.wmode = “window”;  
params.scale = “noborder”;  
params.menu = “true”;  
params.devicefont = “false”;  
params.salign = “”;  
params.allowscriptaccess = “sameDomain”;  
var attributes = {};  
attributes.id = “index”;  
attributes.name = “index”;  
attributes.align = “top”;  
swfobject.createCSS(“html”, “height:100%; background-color: #ffffff;”);  
swfobject.createCSS(“body”, “margin:0; padding:0; overflow:hidden; height:100%;”);  
swfobject.embedSWF(  
“index.swf”, “flashContent”,  
“720”, “480”,  
swfVersionStr, xiSwfUrlStr,  
flashvars, params, attributes);  
\</script\>  
\</head\>  
\<body\>  
\<!-- SWFObject’s dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. --\>  
\<div id=“flashContent”\>  
\<a href=“[http://www.adobe.com/go/getflash](http://www.adobe.com/go/getflash)”\>  
\<img src=“[http://www.adobe.com/images/shared/download\_buttons/get\_flash\_player.gif](http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif)” alt=“Get Adobe Flash player” /\>  
\</a\>  
\<p\>This page requires Flash Player version 10.0.0 or higher.\</p\>  
\</div\>  
\</body\>  
\</html\>
